/* Home "Soluțiile noastre": audience tabs + compact cards with an expandable description. */
.site-modern .home-solutions {
    clear: both;
    display: flow-root;
    padding: 72px 24px 64px;
    background: #fff;
}
.site-modern .home-solutions__inner { max-width: 1160px; margin: 0 auto; }

.site-modern .home-solutions__header { max-width: 720px; margin: 0 auto 32px; text-align: center; }
.site-modern .home-solutions__eyebrow {
    margin: 0 0 10px;
    color: var(--site-blue);
    font-size: 14px;
    font-weight: 700;
    letter-spacing: .08em;
    text-transform: uppercase;
}
.site-modern .home-solutions__header h2 {
    float: none;
    width: auto;
    margin: 0;
    color: var(--site-ink);
    font-size: clamp(26px, 2.6vw, 36px);
    font-weight: 700;
    line-height: 1.25;
    letter-spacing: -.02em;
    text-align: center;
}
.site-modern .home-solutions__header h2 span { color: var(--site-blue); }

/* Tabs: segmented control. */
.site-modern .home-solutions__tabs {
    display: flex;
    width: fit-content;
    max-width: 100%;
    margin: 0 auto 36px;
    padding: 6px;
    gap: 4px;
    overflow-x: auto;
    border: 1px solid var(--site-line);
    border-radius: var(--site-pill);
    background: #f4f7fc;
    scrollbar-width: none;
}
.site-modern .home-solutions__tabs::-webkit-scrollbar { display: none; }
.site-modern .home-solutions__tab {
    flex: 0 0 auto;
    padding: 11px 22px;
    border: 0;
    border-radius: var(--site-pill);
    background: transparent;
    color: var(--site-muted);
    font: 600 15px/1.2 var(--site-font-body);
    white-space: nowrap;
    cursor: pointer;
    transition: background-color .2s ease, color .2s ease, box-shadow .2s ease;
}
.site-modern .home-solutions__tab:hover { color: var(--site-ink); }
.site-modern .home-solutions__tab[aria-selected="true"] {
    background: #fff;
    color: var(--site-blue);
    box-shadow: 0 4px 14px rgba(31, 59, 99, .1);
}
.site-modern .home-solutions__tab:focus-visible { outline: 2px solid var(--site-blue); outline-offset: 2px; }

/* Panels: without JS every group stays visible, one after another. */
.site-modern .home-solutions__panel + .home-solutions__panel { margin-top: 40px; }
.site-modern .home-solutions.is-enhanced .home-solutions__panel + .home-solutions__panel { margin-top: 0; }
.site-modern .home-solutions__panel[hidden] { display: none; }
.site-modern .home-solutions__panel.is-entering { animation: home-solutions-in .35s ease both; }
@keyframes home-solutions-in { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
.site-modern .home-solutions__panel-title {
    float: none;
    width: auto;
    margin: 0 0 18px;
    color: var(--site-muted);
    font: 600 15px/1.4 var(--site-font-body);
    text-align: center;
}

.site-modern .home-solutions__grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    align-items: start;
    gap: 20px;
}
/* A group with a single product: one wider card, centered. */
.site-modern .home-solutions__grid > .home-solution:only-child { grid-column: 1 / -1; width: 100%; max-width: 560px; justify-self: center; }

/* Card */
.site-modern .home-solution {
    display: flex;
    flex-direction: column;
    padding: 22px 22px 8px;
    border: 1px solid var(--site-line);
    border-radius: 20px;
    background: #fff;
    box-shadow: 0 6px 20px rgba(31, 59, 99, .05);
    transition: border-color .2s ease, box-shadow .2s ease;
}
.site-modern .home-solution:hover,
.site-modern .home-solution.is-open { border-color: #c1d5f6; box-shadow: var(--site-shadow); }
.site-modern .home-solution__head { display: flex; align-items: center; gap: 16px; }
.site-modern .home-solution__logo {
    display: grid;
    place-items: center;
    flex: 0 0 64px;
    width: 64px;
    height: 64px;
    padding: 8px;
    border-radius: 16px;
    background: #f4f7fc;
}
.site-modern .home-solution__logo img { display: block; width: 100%; height: 100%; object-fit: contain; }
.site-modern .home-solution h4 {
    float: none;
    width: auto;
    margin: 0;
    color: var(--site-ink);
    font-family: var(--site-font-heading);
    font-size: 18px;
    font-weight: 700;
    line-height: 1.3;
    text-align: left;
}
.site-modern .home-solution__head p { margin: 4px 0 0; color: var(--site-muted); font-size: 14px; line-height: 1.5; }

/* Expandable description: grid rows 0fr -> 1fr animates to the real content height. */
.site-modern .home-solution__more { display: grid; grid-template-rows: 1fr; }
.site-modern .home-solutions.is-enhanced .home-solution__more {
    grid-template-rows: 0fr;
    transition: grid-template-rows .32s ease;
}
.site-modern .home-solutions.is-enhanced .home-solution.is-open .home-solution__more { grid-template-rows: 1fr; }
.site-modern .home-solution__more-inner { min-height: 0; overflow: hidden; }
.site-modern .home-solutions.is-enhanced .home-solution__more-inner { opacity: 0; transition: opacity .25s ease; }
.site-modern .home-solutions.is-enhanced .home-solution.is-open .home-solution__more-inner { opacity: 1; transition-delay: .08s; }
.site-modern .home-solution__more-inner p { margin: 16px 0 0; color: #3f4d61; font-size: 15px; line-height: 1.65; text-align: left; }
.site-modern .home-solution__more-inner p + p { margin-top: 10px; }
/* Shared .site-button look (site-buttons.css), sized down to stay subtle inside the card. */
html body.site-modern .home-solution .home-solution__link.site-button {
    gap: 6px;
    min-height: 32px;
    margin: 14px 0 10px; /* bottom room so the shadow is not clipped */
    padding: 5px 14px;
    border-radius: 9px;
    font-size: 14px;
    font-weight: 600;
    line-height: 1.3;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, .3), 0 1px 0 #194da9, 0 3px 8px rgba(33, 101, 232, .14);
}
@media (hover: hover) {
    html body.site-modern .home-solution .home-solution__link.site-button:hover {
        box-shadow: inset 0 1px 0 rgba(255, 255, 255, .4), 0 1px 0 #194da9, 0 4px 10px rgba(33, 101, 232, .2);
    }
}

.site-modern .home-solution__toggle { display: none; }
.site-modern .home-solutions.is-enhanced .home-solution__toggle {
    display: flex;
    align-items: center;
    gap: 8px;
    width: 100%;
    margin-top: 16px;
    padding: 12px 0;
    border: 0;
    border-top: 1px solid var(--site-line);
    background: none;
    color: var(--site-blue);
    font: 600 14px/1.2 var(--site-font-body);
    text-align: left;
    cursor: pointer;
}
.site-modern .home-solution__toggle::after {
    content: '';
    width: 8px;
    height: 8px;
    margin: -3px 0 0 auto;
    border-right: 2px solid currentColor;
    border-bottom: 2px solid currentColor;
    transform: rotate(45deg);
    transition: transform .25s ease, margin .25s ease;
}
.site-modern .home-solution.is-open .home-solution__toggle::after { margin-top: 3px; transform: rotate(-135deg); }
.site-modern .home-solution__toggle:focus-visible { outline: 2px solid var(--site-blue); outline-offset: 2px; border-radius: 6px; }

@media (max-width: 1000px) {
    .site-modern .home-solutions__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 760px) {
    .site-modern .home-solutions { padding: 48px 16px 40px; }
    .site-modern .home-solutions__header { margin-bottom: 24px; }
    .site-modern .home-solutions__eyebrow { font-size: 12px; }
    .site-modern .home-solutions__header h2 { font-size: clamp(22px, 6vw, 28px); }
    /* Mobile tabs: "Contabili / Companii / Antreprenori", three equal parts, always all visible. */
    .site-modern .home-solutions__tabs { width: 100%; margin-bottom: 24px; padding: 4px; gap: 2px; overflow: visible; }
    .site-modern .home-solutions__tab { flex: 1 1 0; min-width: 0; padding: 10px 4px; font-size: 14px; }
    .site-modern .home-solutions__tab-prefix { display: none; }
    .site-modern .home-solutions__tab-word { text-transform: capitalize; }
    .site-modern .home-solutions__grid { grid-template-columns: minmax(0, 1fr); gap: 12px; }
    .site-modern .home-solution { padding: 16px 16px 4px; border-radius: 16px; }
    .site-modern .home-solution__logo { flex-basis: 52px; width: 52px; height: 52px; border-radius: 14px; }
    .site-modern .home-solution h4 { font-size: 16px; }
    .site-modern .home-solution__head p { font-size: 13px; }
    .site-modern .home-solution__more-inner p { font-size: 14px; }
}
@media (max-width: 380px) {
    .site-modern .home-solutions__tab { font-size: 13px; }
}
@media (prefers-reduced-motion: reduce) {
    .site-modern .home-solutions.is-enhanced .home-solution__more,
    .site-modern .home-solutions.is-enhanced .home-solution__more-inner,
    .site-modern .home-solution__toggle::after,
    .site-modern .home-solutions__tab { transition: none; }
    .site-modern .home-solutions__panel.is-entering { animation: none; }
}

/* Neutralize legacy global h3/p rules from style.css inside this section. */
.site-modern .home-solutions .home-solutions__panel-title { padding: 0; border-left: 0; }
.site-modern .home-solutions p { font-family: var(--site-font-body); text-transform: none; }
