/**
 * RAVIDEX responsive styles
 */

@media (max-width: 1100px) {
    .rv-menu {
        gap: 20px;
    }

    .rv-menu > li > a {
        font-size: 0.9rem;
    }
}

@media (max-width: 991px) {
    :root {
        --rv-container-gutter: 20px;
    }

    .rv-header__inner {
        position: relative;
        min-height: 74px;
        gap: 16px;
    }

    .rv-brand {
        margin-left: auto;
    }

    .rv-brand .custom-logo {
        max-width: 150px;
        max-height: 48px;
    }

    .rv-menu-toggle {
        display: block;
        order: 3;
    }

    .rv-header__action {
        order: 2;
    }

    .rv-navigation {
        position: absolute;
        top: calc(100% + 1px);
        right: 0;
        left: 0;
        display: none;
        padding: 14px;
        background: var(--rv-color-white);
        border: 1px solid var(--rv-color-border);
        border-radius: 0 0 var(--rv-radius-medium) var(--rv-radius-medium);
        box-shadow: var(--rv-shadow-medium);
    }

    .rv-menu-is-open .rv-navigation {
        display: block;
    }

    .rv-menu {
        display: block;
    }

    .rv-menu > li > a {
        padding: 12px;
        border-radius: var(--rv-radius-small);
    }

    .rv-menu > li > a::after {
        display: none;
    }

    .rv-menu > li > a:hover,
    .rv-menu > li > a:focus {
        background: var(--rv-color-background);
    }

    .rv-menu .sub-menu {
        position: static;
        display: block;
        min-width: 0;
        padding: 0 16px 8px 0;
        visibility: visible;
        opacity: 1;
        background: transparent;
        border: 0;
        box-shadow: none;
        transform: none;
    }

    .rv-menu-is-open .rv-menu-toggle span:nth-child(1) {
        transform: translateY(7px) rotate(45deg);
    }

    .rv-menu-is-open .rv-menu-toggle span:nth-child(2) {
        opacity: 0;
    }

    .rv-menu-is-open .rv-menu-toggle span:nth-child(3) {
        transform: translateY(-7px) rotate(-45deg);
    }
}

@media (max-width: 575px) {
    :root {
        --rv-container-gutter: 16px;
    }

    .rv-header__action {
        display: none;
    }

    .rv-brand .custom-logo {
        max-width: 130px;
    }

    .rv-brand__name {
        font-size: 1.2rem;
    }
}
@media (max-width: 991px) {
    .rv-hero {
        padding: 80px 0 70px;
    }

    .rv-hero__grid {
        grid-template-columns: 1fr;
        gap: 52px;
    }

    .rv-hero__content {
        max-width: 760px;
    }

    .rv-hero__visual {
        width: min(100%, 580px);
    }

    .rv-trust-item {
        padding-inline: 18px;
    }
}

@media (max-width: 767px) {
    .rv-hero {
        padding: 65px 0 55px;
    }

    .rv-hero h1 {
        font-size: clamp(2.25rem, 11vw, 3.2rem);
    }

    .rv-hero .rv-hero__description {
        font-size: 1rem;
    }

    .rv-hero__actions {
        display: grid;
    }

    .rv-hero__actions .rv-btn {
        width: 100%;
    }

    .rv-trust-bar__items {
        grid-template-columns: 1fr;
    }

    .rv-trust-item {
        justify-content: flex-start;
        min-height: 88px;
        border-bottom: 1px solid var(--rv-color-border);
        border-left: 0;
    }

    .rv-trust-item:last-child {
        border-bottom: 0;
    }
}

@media (max-width: 480px) {
    .rv-decision-card {
        padding: 22px;
    }

    .rv-decision-card__header {
        display: grid;
    }

    .rv-decision-card__status {
        justify-self: start;
    }

    .rv-decision-card__metrics {
        grid-template-columns: 1fr;
    }

    .rv-decision-card__metrics div {
        display: flex;
        align-items: center;
        justify-content: space-between;
        text-align: right;
    }
}