/* Complete Homepage V2 */

.bep-home-v2 {
    position: relative;
    left: 50%;
    width: 100vw;
    max-width: 100vw;
    margin-left: -50vw;
    overflow: hidden;
    color: var(--bep-text);
}

.bep-home-v2 svg {
    width: 1em;
    height: 1em;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.8;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.bep-home-v2-hero {
    position: relative;
    padding: clamp(64px, 8vw, 108px) 0 92px;
    overflow: hidden;
    color: #fff;
    background:
        radial-gradient(circle at 88% 10%, rgba(244, 155, 36, .2), transparent 27%),
        radial-gradient(circle at 5% 90%, rgba(29, 111, 190, .34), transparent 34%),
        linear-gradient(135deg, #062b55 0%, #0a477f 56%, #073665 100%);
}

.bep-home-v2-hero::before {
    position: absolute;
    inset: 0;
    opacity: .08;
    background-image:
        linear-gradient(rgba(255,255,255,.6) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255,255,255,.6) 1px, transparent 1px);
    background-size: 44px 44px;
    content: "";
    pointer-events: none;
}

.bep-home-v2-hero__grid {
    position: relative;
    z-index: 1;
    display: grid;
    grid-template-columns: minmax(0, 1.03fr) minmax(420px, .97fr);
    align-items: center;
    gap: clamp(38px, 7vw, 86px);
}

.bep-home-v2-hero__eyebrow {
    display: inline-flex;
    margin-bottom: 17px;
    padding: 7px 11px;
    border: 1px solid rgba(255,255,255,.2);
    border-radius: 999px;
    color: #fff;
    background: rgba(255,255,255,.09);
    font-size: 11px;
    font-weight: 800;
    letter-spacing: .11em;
}

.bep-home-v2-hero h1 {
    max-width: 720px;
    margin: 0 0 20px;
    color: #fff;
    font-size: clamp(40px, 5.4vw, 68px);
    font-weight: 850;
    letter-spacing: -.035em;
    line-height: 1.08;
}

.bep-home-v2-hero__content > p {
    max-width: 650px;
    margin: 0;
    color: rgba(255,255,255,.82);
    font-size: clamp(16px, 1.7vw, 19px);
    line-height: 1.7;
}

.bep-home-v2-hero__buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 11px;
    margin-top: 29px;
}

.bep-home-v2-button {
    display: inline-flex;
    min-height: 49px;
    align-items: center;
    justify-content: center;
    gap: 9px;
    padding: 11px 20px;
    border: 1px solid transparent;
    border-radius: 8px;
    font-size: 13px;
    font-weight: 800;
    text-decoration: none;
    transition: transform .2s ease, box-shadow .2s ease, background .2s ease;
}

.bep-home-v2-button svg {
    width: 18px;
    height: 18px;
}

.bep-home-v2-button:hover {
    color: #fff;
    transform: translateY(-2px);
}

.bep-home-v2-button--accent {
    color: #fff;
    background: var(--bep-accent);
    box-shadow: 0 12px 28px rgba(244,155,36,.28);
}

.bep-home-v2-button--accent:hover {
    background: #df8610;
}

.bep-home-v2-button--ghost {
    border-color: rgba(255,255,255,.5);
    color: #fff;
    background: rgba(255,255,255,.06);
}

.bep-home-v2-button--ghost:hover {
    background: rgba(255,255,255,.14);
}

.bep-home-v2-hero__bullets {
    display: flex;
    flex-wrap: wrap;
    gap: 10px 18px;
    margin-top: 25px;
}

.bep-home-v2-hero__bullets span {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    color: rgba(255,255,255,.82);
    font-size: 12px;
    font-weight: 600;
}

.bep-home-v2-hero__bullets i {
    display: inline-flex;
    width: 20px;
    height: 20px;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    color: #fff;
    background: rgba(244,155,36,.85);
    font-size: 10px;
    font-style: normal;
}

.bep-home-v2-hero__visual {
    position: relative;
    min-width: 0;
}

.bep-home-v2-hero__visual-frame {
    position: relative;
    min-height: 470px;
    overflow: hidden;
    border: 1px solid rgba(255,255,255,.18);
    border-radius: 26px;
    background:
        radial-gradient(circle at 70% 20%, rgba(255,255,255,.14), transparent 28%),
        rgba(255,255,255,.08);
    box-shadow: 0 28px 65px rgba(0,0,0,.28);
    backdrop-filter: blur(8px);
}

.bep-home-v2-hero__main-image {
    display: block;
    width: 100%;
    height: 100%;
    min-height: 470px;
    object-fit: cover;
}

.bep-home-v2-hero__collage {
    position: absolute;
    inset: 0;
}

.bep-home-v2-hero__product-image {
    position: absolute;
    display: block;
    object-fit: contain;
    border: 1px solid rgba(255,255,255,.22);
    border-radius: 18px;
    background: rgba(255,255,255,.94);
    box-shadow: 0 20px 45px rgba(0,0,0,.22);
}

.bep-home-v2-hero__product-image--1 {
    top: 9%;
    left: 8%;
    z-index: 2;
    width: 62%;
    height: 75%;
}

.bep-home-v2-hero__product-image--2 {
    top: 17%;
    right: 4%;
    z-index: 3;
    width: 38%;
    height: 42%;
    transform: rotate(3deg);
}

.bep-home-v2-hero__product-image--3 {
    right: 9%;
    bottom: 5%;
    z-index: 4;
    width: 42%;
    height: 35%;
    transform: rotate(-3deg);
}

.bep-home-v2-hero__placeholder {
    display: flex;
    min-height: 470px;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 11px;
    color: rgba(255,255,255,.82);
    text-align: center;
}

.bep-home-v2-hero__placeholder svg {
    width: 92px;
    height: 92px;
    color: var(--bep-accent);
}

.bep-home-v2-hero__placeholder strong {
    color: #fff;
    font-size: 23px;
}

.bep-home-v2-hero__placeholder small {
    color: rgba(255,255,255,.62);
}

.bep-home-v2-hero__floating-card {
    position: absolute;
    right: -18px;
    bottom: 28px;
    z-index: 7;
    display: flex;
    min-width: 290px;
    align-items: center;
    gap: 12px;
    padding: 15px 17px;
    border-radius: 12px;
    color: var(--bep-text);
    background: #fff;
    box-shadow: 0 16px 38px rgba(0,0,0,.22);
}

.bep-home-v2-hero__floating-card > span {
    display: inline-flex;
    width: 43px;
    min-width: 43px;
    height: 43px;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    color: #fff;
    background: var(--bep-primary);
}

.bep-home-v2-hero__floating-card svg {
    width: 22px;
    height: 22px;
}

.bep-home-v2-hero__floating-card strong,
.bep-home-v2-hero__floating-card small {
    display: block;
}

.bep-home-v2-hero__floating-card strong {
    color: var(--bep-primary-dark);
    font-size: 14px;
}

.bep-home-v2-hero__floating-card small {
    margin-top: 3px;
    color: var(--bep-muted);
    font-size: 11px;
}

/* Trust strip */
.bep-home-v2-trust {
    position: relative;
    z-index: 5;
    margin-top: -39px;
}

.bep-home-v2-trust__grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    overflow: hidden;
    border: 1px solid var(--bep-border);
    border-radius: 14px;
    background: #fff;
    box-shadow: 0 18px 45px rgba(7,47,95,.14);
}

.bep-home-v2-trust__grid > div {
    display: flex;
    min-width: 0;
    align-items: center;
    gap: 13px;
    padding: 21px 25px;
    border-right: 1px solid var(--bep-border);
}

.bep-home-v2-trust__grid > div:last-child {
    border-right: 0;
}

.bep-home-v2-trust__grid > div > span {
    display: inline-flex;
    width: 45px;
    min-width: 45px;
    height: 45px;
    align-items: center;
    justify-content: center;
    border-radius: 12px;
    color: var(--bep-primary);
    background: var(--bep-soft);
}

.bep-home-v2-trust svg {
    width: 23px;
    height: 23px;
}

.bep-home-v2-trust strong,
.bep-home-v2-trust small {
    display: block;
}

.bep-home-v2-trust strong {
    color: var(--bep-primary-dark);
    font-size: 14px;
}

.bep-home-v2-trust small {
    margin-top: 3px;
    color: var(--bep-muted);
    font-size: 11px;
}

/* Global sections */
.bep-home-v2-section {
    padding: clamp(62px, 8vw, 94px) 0;
}

.bep-home-v2-section--categories,
.bep-home-v2-section--products,
.bep-home-v2-section--posts {
    background: #fff;
}

.bep-home-v2-section--reasons,
.bep-home-v2-section--projects,
.bep-home-v2-section--quote {
    background: #f4f8fc;
}

.bep-home-v2-heading {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 28px;
    margin-bottom: 32px;
}

.bep-home-v2-heading > div {
    max-width: 760px;
}

.bep-home-v2-heading span {
    display: inline-flex;
    margin-bottom: 8px;
    color: var(--bep-accent);
    font-size: 11px;
    font-weight: 850;
    letter-spacing: .12em;
}

.bep-home-v2-heading h2 {
    margin: 0;
    color: var(--bep-primary-dark);
    font-size: clamp(30px, 4vw, 44px);
    font-weight: 820;
    letter-spacing: -.025em;
    line-height: 1.18;
}

.bep-home-v2-heading p {
    max-width: 690px;
    margin: 10px 0 0;
    color: var(--bep-muted);
    font-size: 15px;
    line-height: 1.65;
}

.bep-home-v2-heading > a {
    display: inline-flex;
    flex: 0 0 auto;
    align-items: center;
    gap: 8px;
    color: var(--bep-primary);
    font-size: 13px;
    font-weight: 800;
}

.bep-home-v2-heading > a svg {
    width: 17px;
    height: 17px;
    transition: transform .2s ease;
}

.bep-home-v2-heading > a:hover svg {
    transform: translateX(4px);
}

/* Categories */
.bep-home-v2-categories {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 20px;
}

.bep-home-v2-category {
    display: flex;
    min-width: 0;
    height: 100%;
    flex-direction: column;
    overflow: hidden;
    border: 1px solid var(--bep-border);
    border-radius: 14px;
    background: #fff;
    box-shadow: 0 8px 24px rgba(15,50,90,.055);
    transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease;
}

.bep-home-v2-category:hover {
    transform: translateY(-5px);
    border-color: rgba(11,79,156,.32);
    box-shadow: 0 18px 38px rgba(15,50,90,.12);
}

.bep-home-v2-category__media {
    display: flex;
    aspect-ratio: 4 / 3;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    border-bottom: 1px solid var(--bep-border);
    background: linear-gradient(145deg, #f8fbff, #eef3f8);
}

.bep-home-v2-category__media img {
    width: 100%;
    height: 100%;
    padding: 16px;
    object-fit: contain;
    display: block;
    transition: transform .3s ease;
}

.bep-home-v2-category:hover .bep-home-v2-category__media img {
    transform: scale(1.045);
}

.bep-home-v2-category__placeholder {
    display: inline-flex;
    width: 78px;
    height: 78px;
    align-items: center;
    justify-content: center;
    border-radius: 22px;
    color: var(--bep-primary);
    background: #fff;
    box-shadow: 0 12px 30px rgba(11,79,156,.1);
}

.bep-home-v2-category__placeholder svg {
    width: 42px;
    height: 42px;
}

.bep-home-v2-category__body {
    display: flex;
    flex: 1;
    flex-direction: column;
    padding: 18px;
}

.bep-home-v2-category h3 {
    margin: 0 0 8px;
    color: var(--bep-primary-dark);
    font-size: 18px;
    line-height: 1.35;
}

.bep-home-v2-category h3 a {
    color: inherit;
}

.bep-home-v2-category p {
    margin: 0 0 15px;
    color: var(--bep-muted);
    font-size: 13px;
    line-height: 1.6;
}

.bep-home-v2-category__link {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    margin-top: auto;
    color: var(--bep-primary);
    font-size: 12px;
    font-weight: 800;
}

.bep-home-v2-category__link svg {
    width: 16px;
    height: 16px;
}

/* Reasons */
.bep-home-v2-reasons {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 20px;
}

.bep-home-v2-reason {
    position: relative;
    min-height: 230px;
    padding: 25px;
    overflow: hidden;
    border: 1px solid var(--bep-border);
    border-radius: 14px;
    background: #fff;
    box-shadow: 0 7px 22px rgba(15,50,90,.045);
    transition: transform .25s ease, box-shadow .25s ease;
}

.bep-home-v2-reason::after {
    position: absolute;
    right: -34px;
    bottom: -44px;
    width: 120px;
    height: 120px;
    border-radius: 50%;
    background: rgba(11,79,156,.04);
    content: "";
}

.bep-home-v2-reason:hover {
    transform: translateY(-4px);
    box-shadow: 0 17px 36px rgba(15,50,90,.1);
}

.bep-home-v2-reason > span {
    display: inline-flex;
    width: 51px;
    height: 51px;
    align-items: center;
    justify-content: center;
    border-radius: 14px;
    color: #fff;
    background: linear-gradient(135deg, var(--bep-primary), #0878f9);
    box-shadow: 0 10px 23px rgba(11,79,156,.2);
}

.bep-home-v2-reason svg {
    width: 25px;
    height: 25px;
}

.bep-home-v2-reason h3 {
    margin: 19px 0 9px;
    color: var(--bep-primary-dark);
    font-size: 19px;
}

.bep-home-v2-reason p {
    margin: 0;
    color: var(--bep-muted);
    font-size: 14px;
    line-height: 1.7;
}

/* Existing shortcode polish inside V2 */
.bep-home-v2 .bep-project-grid {
    gap: 22px;
}

.bep-home-v2 .bep-project-card {
    border: 1px solid var(--bep-border);
    border-radius: 14px;
    box-shadow: 0 8px 24px rgba(15,50,90,.06);
    transition: transform .25s ease, box-shadow .25s ease;
}

.bep-home-v2 .bep-project-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 18px 38px rgba(15,50,90,.13);
}

.bep-home-v2 .bep-project-card__content {
    padding: 20px;
}

.bep-home-v2 .bep-project-card__content h3 {
    font-size: 20px;
}

.bep-home-v2 .bep-latest-posts-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 22px;
}

.bep-home-v2 .bep-blog-card {
    overflow: hidden;
    border: 1px solid var(--bep-border);
    border-radius: 14px;
    background: #fff;
    box-shadow: 0 8px 24px rgba(15,50,90,.06);
    transition: transform .25s ease, box-shadow .25s ease;
}

.bep-home-v2 .bep-blog-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 18px 38px rgba(15,50,90,.13);
}

.bep-home-v2 .bep-blog-card__image {
    display: flex;
    aspect-ratio: 16 / 10;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    background: #eaf1f7;
}

.bep-home-v2 .bep-blog-card__image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform .3s ease;
}

.bep-home-v2 .bep-blog-card:hover .bep-blog-card__image img {
    transform: scale(1.04);
}

.bep-home-v2 .bep-blog-card__content {
    padding: 20px;
}

.bep-home-v2 .bep-blog-card__meta {
    display: flex;
    flex-wrap: wrap;
    gap: 7px 13px;
    margin-bottom: 9px;
    color: var(--bep-muted);
    font-size: 11px;
}

.bep-home-v2 .bep-blog-card h3 {
    margin: 0 0 9px;
    color: var(--bep-primary-dark);
    font-size: 19px;
    line-height: 1.4;
}

.bep-home-v2 .bep-blog-card h3 a {
    color: inherit;
}

.bep-home-v2 .bep-blog-card p {
    color: var(--bep-muted);
    font-size: 13px;
    line-height: 1.65;
}

.bep-home-v2 .bep-blog-readmore {
    color: var(--bep-primary);
    font-size: 12px;
    font-weight: 800;
}

/* Quote */
.bep-home-v2-section--quote {
    padding-top: 80px;
    padding-bottom: 80px;
}

/* Responsive */
@media (max-width: 1100px) {
    .bep-home-v2-hero__grid {
        grid-template-columns: minmax(0, 1fr) minmax(370px, .85fr);
        gap: 40px;
    }

    .bep-home-v2-hero__visual-frame {
        min-height: 420px;
    }

    .bep-home-v2-hero__main-image,
    .bep-home-v2-hero__placeholder {
        min-height: 420px;
    }
}

@media (max-width: 849px) {
    .bep-home-v2-hero {
        padding-bottom: 76px;
    }

    .bep-home-v2-hero__grid {
        grid-template-columns: 1fr;
    }

    .bep-home-v2-hero__content {
        text-align: center;
    }

    .bep-home-v2-hero h1,
    .bep-home-v2-hero__content > p {
        margin-right: auto;
        margin-left: auto;
    }

    .bep-home-v2-hero__buttons,
    .bep-home-v2-hero__bullets {
        justify-content: center;
    }

    .bep-home-v2-hero__visual {
        width: min(600px, 100%);
        margin: 8px auto 0;
    }

    .bep-home-v2-hero__floating-card {
        right: 18px;
    }

    .bep-home-v2-trust__grid {
        grid-template-columns: 1fr;
    }

    .bep-home-v2-trust__grid > div {
        border-right: 0;
        border-bottom: 1px solid var(--bep-border);
    }

    .bep-home-v2-trust__grid > div:last-child {
        border-bottom: 0;
    }

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

    .bep-home-v2-reasons,
    .bep-home-v2 .bep-latest-posts-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .bep-home-v2-heading {
        align-items: flex-start;
    }
}

@media (max-width: 549px) {
    .bep-home-v2-hero {
        padding-top: 46px;
        padding-bottom: 62px;
    }

    .bep-home-v2-hero h1 {
        font-size: 38px;
    }

    .bep-home-v2-hero__content > p {
        font-size: 15px;
    }

    .bep-home-v2-hero__buttons {
        display: grid;
        grid-template-columns: 1fr;
    }

    .bep-home-v2-button {
        width: 100%;
    }

    .bep-home-v2-hero__bullets {
        display: grid;
        justify-content: start;
        width: fit-content;
        margin-right: auto;
        margin-left: auto;
        text-align: left;
    }

    .bep-home-v2-hero__visual-frame {
        min-height: 330px;
        border-radius: 18px;
    }

    .bep-home-v2-hero__main-image,
    .bep-home-v2-hero__placeholder {
        min-height: 330px;
    }

    .bep-home-v2-hero__floating-card {
        right: 10px;
        bottom: 12px;
        left: 10px;
        min-width: 0;
    }

    .bep-home-v2-trust {
        margin-top: -25px;
    }

    .bep-home-v2-trust__grid > div {
        padding: 16px;
    }

    .bep-home-v2-section {
        padding: 56px 0;
    }

    .bep-home-v2-heading {
        display: grid;
        gap: 14px;
        margin-bottom: 24px;
    }

    .bep-home-v2-heading h2 {
        font-size: 31px;
    }

    .bep-home-v2-heading p {
        font-size: 14px;
    }

    .bep-home-v2-categories {
        gap: 12px;
    }

    .bep-home-v2-category__media {
        aspect-ratio: 1 / 1;
    }

    .bep-home-v2-category__media img {
        padding: 10px;
    }

    .bep-home-v2-category__placeholder {
        width: 62px;
        height: 62px;
        border-radius: 17px;
    }

    .bep-home-v2-category__placeholder svg {
        width: 34px;
        height: 34px;
    }

    .bep-home-v2-category__body {
        padding: 13px;
    }

    .bep-home-v2-category h3 {
        font-size: 15px;
    }

    .bep-home-v2-category p {
        display: none;
    }

    .bep-home-v2-reasons,
    .bep-home-v2 .bep-latest-posts-grid {
        grid-template-columns: 1fr;
    }

    .bep-home-v2-reason {
        min-height: auto;
    }

    .bep-home-v2-section--quote {
        padding-top: 55px;
        padding-bottom: 55px;
    }
}
