/* ==========================================================
   HV Brand Intro – Giới thiệu thương hiệu
   ========================================================== */
.hv-brand {
    --hv-b-primary: var(--e-global-color-primary, #6F5E4B);
    --hv-b-accent: var(--e-global-color-secondary, #922B2A);
    --hv-b-text: #1d2733;
    --hv-b-muted: #5b6672;
    --hv-b-ratio: 4 / 5;
    --hv-b-gap: 72px;
    --hv-b-radius: 20px;
    --hv-b-cols: 2;
    display: grid;
    grid-template-columns: minmax(0, 5fr) minmax(0, 6fr);
    align-items: center;
    gap: var(--hv-b-gap);
    font-family: var(--e-global-typography-primary-font-family, "Roboto Flex"), sans-serif;
    color: var(--hv-b-text);
}

.hv-brand--image-right {
    grid-template-columns: minmax(0, 6fr) minmax(0, 5fr);
}

.hv-brand--image-right .hv-brand__media {
    order: 2;
}

/* ---------- Ảnh ---------- */
.hv-brand__media {
    position: relative;
    aspect-ratio: var(--hv-b-ratio);
    border-radius: var(--hv-b-radius);
    background: #eef0f2;
}

/* Khung viền lệch tạo chiều sâu */
.hv-brand__media::before {
    content: "";
    position: absolute;
    inset: 24px -24px -24px 24px;
    z-index: 0;
    border: 1px solid rgba(111, 94, 75, .18);
    border-radius: var(--hv-b-radius);
    pointer-events: none;
}

.hv-brand--image-right .hv-brand__media::before {
    inset: 24px 24px -24px -24px;
}

.hv-brand__img {
    position: relative;
    z-index: 1;
    display: block;
    width: 100% !important;
    height: 100% !important;
    max-width: none !important;
    object-fit: cover;
    border-radius: var(--hv-b-radius);
}

.hv-brand__badge {
    position: absolute;
    z-index: 2;
    right: -20px;
    bottom: 40px;
    display: flex;
    flex-direction: column;
    gap: 4px;
    min-width: 180px;
    padding: 18px 22px;
    border-radius: 14px;
    background: #fff;
    box-shadow: 0 16px 40px rgba(16, 24, 40, .12);
}

.hv-brand--image-right .hv-brand__badge {
    right: auto;
    left: -20px;
}

.hv-brand__badge strong {
    color: var(--hv-b-primary);
    font-size: 22px;
    font-weight: 800;
    line-height: 1.15;
}

.hv-brand__badge span {
    color: var(--hv-b-muted);
    font-size: 13px;
    line-height: 1.4;
}

.hv-brand__badge::before {
    content: "";
    width: 28px;
    height: 3px;
    margin-bottom: 6px;
    border-radius: 3px;
    background: var(--hv-b-accent);
}

/* ---------- Nội dung ---------- */
.hv-brand__content {
    min-width: 0;
}

.hv-brand__eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 14px;
    color: var(--hv-b-accent);
    font-size: 12.5px;
    font-weight: 600;
    letter-spacing: .2em;
    text-transform: uppercase;
}

.hv-brand__eyebrow::before {
    content: "";
    width: 28px;
    height: 1px;
    background: currentColor;
}

.hv-brand__title {
    margin: 0 0 18px;
    color: var(--hv-b-primary);
    font-size: clamp(26px, 3vw, 40px);
    font-weight: 700;
    line-height: 1.2;
    letter-spacing: .01em;
}

.hv-brand__desc {
    color: var(--hv-b-muted);
    font-size: 16px;
    line-height: 1.7;
}

.hv-brand__desc p {
    margin: 0 0 12px;
}

.hv-brand__desc p:last-child {
    margin-bottom: 0;
}

/* Điểm nhấn */
.hv-brand__features {
    display: grid;
    grid-template-columns: repeat(var(--hv-b-cols), minmax(0, 1fr));
    gap: 0 32px;
    margin: 28px 0 0;
    padding: 0;
    list-style: none;
    border-top: 1px solid #e6e8eb;
}

.hv-brand__feature {
    display: flex;
    align-items: flex-start;
    gap: 14px;
    margin: 0;
    padding: 20px 0;
    border-bottom: 1px solid #e6e8eb;
}

.hv-brand__icon {
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 46px;
    height: 46px;
    border-radius: 12px;
    background: rgba(111, 94, 75, .07);
    color: var(--hv-b-primary);
    transition: background .25s ease, color .25s ease;
}

.hv-brand__icon img {
    width: 24px;
    height: 24px;
    object-fit: contain;
}

.hv-brand__feature:hover .hv-brand__icon {
    background: var(--hv-b-primary);
    color: #fff;
}

.hv-brand__feature-body {
    display: flex;
    flex-direction: column;
    gap: 4px;
    min-width: 0;
}

.hv-brand__feature-title {
    color: var(--hv-b-text);
    font-size: 16px;
    font-weight: 700;
    line-height: 1.35;
}

.hv-brand__feature-text {
    color: var(--hv-b-muted);
    font-size: 14px;
    line-height: 1.55;
}

/* Nút */
.hv-brand__actions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 14px 28px;
    margin-top: 32px;
}

.hv-brand__btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 14px 28px;
    border-radius: 999px;
    background: var(--hv-ink, #1f1f1f);
    color: #fff !important;
    font-size: 15px;
    font-weight: 600;
    letter-spacing: .02em;
    text-decoration: none;
    transition: background .25s ease, transform .25s ease, box-shadow .25s ease;
}

.hv-brand__btn:hover {
    background: var(--hv-ink-hover, #6e6969);
    box-shadow: 0 10px 24px rgba(0, 0, 0, .18);
}

.hv-brand__btn svg {
    transition: transform .25s ease;
}

.hv-brand__btn:hover svg {
    transform: translateX(4px);
}

.hv-brand__link {
    color: var(--hv-b-primary) !important;
    font-size: 15px;
    font-weight: 600;
    text-decoration: underline;
    text-underline-offset: 5px;
    text-decoration-color: rgba(111, 94, 75, .3);
    transition: color .2s ease, text-decoration-color .2s ease;
}

.hv-brand__link:hover {
    color: var(--hv-b-accent) !important;
    text-decoration-color: currentColor;
}

/* ---------- Responsive ---------- */
@media (max-width: 1024px) {
    .hv-brand {
        --hv-b-gap: 48px;
    }

    .hv-brand__badge {
        right: 16px;
        bottom: 16px;
    }

    .hv-brand--image-right .hv-brand__badge {
        left: 16px;
    }
}

@media (max-width: 767px) {
    .hv-brand,
    .hv-brand--image-right {
        grid-template-columns: minmax(0, 1fr);
        --hv-b-gap: 40px;
        --hv-b-cols: 1;
    }

    .hv-brand--image-right .hv-brand__media {
        order: 0;
    }

    .hv-brand__media {
        aspect-ratio: 4 / 3;
        margin-right: 14px;
    }

    .hv-brand--image-right .hv-brand__media {
        margin-right: 0;
        margin-left: 14px;
    }

    .hv-brand__media::before {
        inset: 14px -14px -14px 14px;
    }

    .hv-brand--image-right .hv-brand__media::before {
        inset: 14px 14px -14px -14px;
    }

    .hv-brand__badge {
        min-width: 0;
        padding: 12px 16px;
    }

    .hv-brand__badge strong {
        font-size: 17px;
    }

    .hv-brand__desc {
        font-size: 15px;
    }

    .hv-brand__feature {
        padding: 16px 0;
    }

    .hv-brand__actions {
        margin-top: 24px;
    }

    .hv-brand__btn {
        width: 100%;
        justify-content: center;
    }
}
