/* okitoki-v4 — cards (mock-up v-cards) and the v4 variants v3 content needs:
 *   --color    icons keep their colours (v3 illustrations), not the mock-up's greyscale
 *   --steps    column cards with the icon on top (v3 preference "in 3 days")
 *   --media    picture on top (v3 corporate services)
 *   --compare  plan columns with a coloured head (v3 compare, color from the CMS) */

.v-cards {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: var(--v-space);
}
.v-cards__item {
    display: flex;
    gap: var(--v-space-lg);
    padding: var(--v-space-lg);
    border-radius: var(--v-radius);
    background-color: rgb(var(--v-color-surface));
    color: rgb(var(--v-color-text-secondary));
    text-decoration: none;
    text-wrap: balance;
    transition: all var(--v-duration) var(--v-timing);
}
.v-cards--on-white .v-cards__item {
    border: 1px solid rgb(var(--v-color-border));
    box-shadow: var(--v-shadow);
}
.v-cards__content {
    display: flex;
    flex-direction: column;
    flex-grow: 1;
    min-width: 0;
}
.v-cards__heading {
    margin-bottom: var(--v-space-xs);
    color: rgb(var(--v-color-text));
    line-height: var(--v-font-line-height-heading);
}
.v-cards__description {
    margin-bottom: var(--v-space);
    color: rgb(var(--v-color-text-secondary));
    line-height: var(--v-font-line-height);
}
.v-cards__description:last-child { margin-bottom: 0; }
.v-cards__icon {
    display: flex;
    flex: 0 0 auto;
    align-items: flex-start;
    justify-content: center;
}
.v-cards__icon-src {
    width: 80px;
    height: 80px;
    object-fit: contain;
    filter: grayscale(1);
}
.v-cards--color .v-cards__icon-src { filter: none; }
.v-cards__controls {
    display: flex;
    flex-wrap: wrap;
    gap: var(--v-space-sm);
    margin-top: auto;
    padding-top: var(--v-space);
}
.v-cards__audio { width: 100%; margin-top: var(--v-space-sm); }

.v-cards--steps { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.v-cards--steps .v-cards__item { flex-direction: column-reverse; justify-content: flex-end; gap: var(--v-space); text-align: center; }
.v-cards--steps .v-cards__heading { font-size: var(--v-font-size-lg); color: rgb(var(--v-color-primary)); }

.v-cards--media { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.v-cards--media .v-cards__item { flex-direction: column; gap: var(--v-space); padding: 0 0 var(--v-space-lg); overflow: hidden; }
.v-cards--media .v-cards__content { padding: 0 var(--v-space-lg); }
.v-cards__media-src { display: block; width: 100%; height: auto; aspect-ratio: 7 / 4; object-fit: cover; }

.v-cards--compare .v-cards__item { flex-direction: column; padding: 0; overflow: hidden; }
/* Solutions page: icon on top, button at the bottom, three per row. */
.v-cards--solutions { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.v-cards--solutions .v-cards__item { flex-direction: column-reverse; justify-content: flex-end; gap: var(--v-space); }
.v-cards--solutions .v-cards__icon { justify-content: flex-start; }
.v-cards--solutions .v-cards__icon-src { width: 64px; height: 64px; }
.v-cards--compare .v-cards__heading {
    margin: 0;
    padding: var(--v-space-md) var(--v-space-lg);
    background-color: var(--v-card-accent, rgb(var(--v-color-primary)));
    color: rgb(var(--v-color-white));
    text-align: center;
}
.v-cards--compare .v-cards__description,
.v-cards--compare .v-cards__controls { padding: var(--v-space-lg); }
.v-cards--compare .v-cards__controls { justify-content: center; padding-top: 0; }
.v-cards--compare .v-cards__content { flex-grow: 1; }

@media (max-width: 1199.98px) {
    .v-cards--steps,
    .v-cards--solutions { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 991.98px) {
    .v-cards,
    .v-cards--media,
    .v-cards--solutions { grid-template-columns: 1fr; }
}
@media (max-width: 767.98px) {
    .v-cards__item { flex-direction: column-reverse; gap: var(--v-space); }
    .v-cards--media .v-cards__item,
    .v-cards--compare .v-cards__item { flex-direction: column; }
    .v-cards__icon { justify-content: flex-start; }
    .v-cards__icon-src { width: 64px; height: 64px; }
    .v-cards--steps { grid-template-columns: 1fr; }
    .v-cards--steps .v-cards__icon { justify-content: center; }
}
