/* SeoMivio v3.1 — Homepage tools grid and solutions carousel refinements.
   Scoped to existing public homepage classes to preserve dashboard/Enterprise UI. */

/* 1. Equal-height two-row toolkit. The featured card no longer occupies two rows. */
.sm-services-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    grid-auto-flow: row;
    gap: 18px;
    padding: 23px 15px 72px;
    align-items: stretch;
}
.sm-services-grid > .sm-service {
    box-sizing: border-box;
    min-width: 0;
    min-height: 350px;
    height: 100%;
    padding: 25px 25px 23px;
    display: flex;
    flex-direction: column;
}
.sm-services-grid > .sm-service-featured {
    grid-column: auto;
    grid-row: auto;
    background: #fff8f4;
    border-color: #f8d5c5;
}
.sm-services-grid .sm-service-icon {
    width: 46px;
    height: 46px;
    margin-bottom: 15px;
}
.sm-services-grid .sm-service h3 {
    font-size: clamp(18px, 1.5vw, 22px);
    line-height: 1.28;
}
.sm-services-grid .sm-service p {
    font-size: 13px;
    line-height: 1.7;
    margin-bottom: 14px;
}
.sm-services-grid .sm-service-illustration {
    box-sizing: border-box;
    padding: 12px 16px;
    margin: 0 0 13px;
    border-radius: 12px;
}
.sm-services-grid .sm-service-illustration strong {
    margin: 4px 0 10px;
}
.sm-services-grid .sm-service-illustration > div {
    height: 48px;
    gap: 7px;
}
.sm-services-grid .sm-service > a {
    margin-top: auto;
    padding-top: 10px;
    text-decoration: none;
}

/* 2. Exactly five complete solution cards in the visible desktop viewport.
      Additional cards exist in the same scrollable track, not shrunk to fit. */
.e30-solutions {
    box-sizing: border-box;
    width: 100%;
    max-width: 100%;
    position: static;
    left: auto;
    transform: none;
    overflow: hidden;
}
.e30-solutions-track {
    --e31-gap: 14px;
    display: flex;
    gap: var(--e31-gap);
    padding: 4px 0 18px;
    scroll-snap-type: x mandatory;
    scroll-behavior: smooth;
    overflow-x: auto;
    overflow-y: hidden;
    overscroll-behavior-inline: contain;
    -webkit-overflow-scrolling: touch;
}
.e30-solutions-track > .e30-sol-card {
    box-sizing: border-box;
    flex: 0 0 calc((100% - 4 * var(--e31-gap)) / 5);
    min-width: 0;
    min-height: 350px;
    padding: 17px 15px 12px;
    border-radius: 10px;
    scroll-snap-align: start;
}
.e30-sol-card h3 {
    font-size: clamp(14px, 1.1vw, 18px);
    line-height: 1.36;
    max-width: none;
    min-height: 90px;
}
.e30-sol-preview { min-height: 125px; margin-inline: -15px; }
.e30-chart-window { height: 113px; }
.e30-sol-top span { font-size: 9px; }

/* Tablet: three visible at once; smaller tablets: two. */
@media (max-width: 1120px) {
    .e30-solutions-track > .e30-sol-card {
        flex-basis: calc((100% - 2 * var(--e31-gap)) / 3);
        min-height: 330px;
    }
    .e30-sol-card h3 { font-size: 16px; min-height: 75px; }
}
@media (max-width: 900px) {
    .sm-services-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .sm-services-grid > .sm-service { min-height: 315px; }
    .e30-solutions-track > .e30-sol-card {
        flex-basis: calc((100% - var(--e31-gap)) / 2);
    }
}
@media (max-width: 600px) {
    .sm-services-grid { grid-template-columns: minmax(0, 1fr); gap: 14px; padding: 17px 0 48px; }
    .sm-services-grid > .sm-service { min-height: 0; height: auto; padding: 23px 21px; }
    .sm-services-grid .sm-service-featured { grid-row: auto; min-height: 0; }
    .sm-services-grid .sm-service-illustration { margin-bottom: 17px; }
    .e30-solutions-track { --e31-gap: 12px; }
    .e30-solutions-track > .e30-sol-card {
        flex-basis: min(83vw, 340px);
        min-height: 315px;
        padding: 15px 14px 10px;
    }
    .e30-sol-card h3 { font-size: 16px; min-height: 64px; }
    .e30-sol-preview { margin-inline: -14px; }
}
@media (prefers-reduced-motion: reduce) {
    .e30-solutions-track { scroll-behavior: auto; }
}
