/*
 * Solutions main V2 — pixel-matched to Figma "Solutions Main" (/solutions section).
 * Self-contained: own @font-face + `.page-solutions-main-v2 *` font-family rule so this page
 * keeps Google Sans Flex regardless of what else is loaded (same pattern as pricing-new.css).
 */
@font-face { font-family: 'Google Sans Flex Local v2'; font-display: swap; src: url('/wp-content/themes/simplydepo/fonts/google-sans-flex/google-sans-flex-latin-400-normal.woff2') format('woff2'), url('/wp-content/themes/simplydepo/fonts/google_sans/GoogleSans-Regular.woff2') format('woff2'); font-weight: 400; font-style: normal; }
@font-face { font-family: 'Google Sans Flex Local v2'; font-display: swap; src: url('/wp-content/themes/simplydepo/fonts/google-sans-flex/google-sans-flex-latin-500-normal.woff2') format('woff2'), url('/wp-content/themes/simplydepo/fonts/google_sans/GoogleSans-Medium.woff2') format('woff2'); font-weight: 500; font-style: normal; }
@font-face { font-family: 'Google Sans Flex Local v2'; font-display: swap; src: url('/wp-content/themes/simplydepo/fonts/google-sans-flex/google-sans-flex-latin-600-normal.woff2') format('woff2'), url('/wp-content/themes/simplydepo/fonts/google_sans/GoogleSans-SemiBold.woff2') format('woff2'); font-weight: 600 900; font-style: normal; }

.page-solutions-main-v2 {
    --smv2-font: 'Google Sans Flex Local v2', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    --smv2-fg-primary: #262626;
    --smv2-fg-secondary: rgba(0, 0, 0, 0.75);
    --smv2-fg-tertiary: rgba(0, 0, 0, 0.55);
    --smv2-text-primary: #282828;
    --smv2-border: rgba(0, 0, 0, 0.1);
    --smv2-border-hover: rgba(0, 0, 0, 0.4);

    background: #fff;
}

.page-solutions-main-v2,
.page-solutions-main-v2 * {
    font-family: var(--smv2-font);
}

.page-solutions-main-v2 h1,
.page-solutions-main-v2 h2,
.page-solutions-main-v2 p,
.page-solutions-main-v2 figure {
    margin: 0;
    padding: 0;
}

/* ---------- Icons ---------- */

/*
 * Every icon gets an explicit wrapper sized to the Figma component box, and the <img>
 * inside is sized to fill it. The category icons are the UI Kit component exports
 * (viewBox 0 0 20 20) whose 16×16 glyph and 2px safe zone are part of the artwork —
 * so the image is drawn at the full 20×20 wrapper, not inset again.
 *
 * These replaced earlier exports taken from the inner Vector layer, which carried a
 * non-square viewBox (e.g. 15.83×17.91) plus `preserveAspectRatio="none"` and were
 * therefore stretched on one axis by the forced square size.
 *
 * `object-fit: contain` stays as a guard for icons uploaded through wp-admin, which may
 * not be square. Width and height are always explicit — never `auto`, which would fall
 * back to the intrinsic size.
 */
.page-solutions-main-v2 .smv2-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 auto;
    overflow: hidden;
}

.page-solutions-main-v2 .smv2-icon img {
    display: block;
    object-fit: contain;
}

.page-solutions-main-v2 .smv2-icon--filter {
    width: 20px;
    height: 20px;
}

.page-solutions-main-v2 .smv2-icon--filter img {
    width: 20px;
    height: 20px;
}

.page-solutions-main-v2 .smv2-icon--tag {
    width: 16px;
    height: 16px;
}

.page-solutions-main-v2 .smv2-icon--tag img {
    width: 16px;
    height: 16px;
}

/* arrow-up-right.svg is a true 20×20 component export — its safe zone is already drawn
   into the artwork, so the glyph fills the wrapper. */
.page-solutions-main-v2 .smv2-icon--arrow {
    width: 20px;
    height: 20px;
}

.page-solutions-main-v2 .smv2-icon--arrow img {
    width: 20px;
    height: 20px;
}

/* ---------- Hero ---------- */

.page-solutions-main-v2 .smv2-hero {
    padding: 96px 0;
}

.page-solutions-main-v2 .smv2-hero__wrapper {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 64px;
}

.page-solutions-main-v2 .smv2-hero__content {
    flex: 1 0 0;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 32px;
    max-width: 480px;
}

.page-solutions-main-v2 .smv2-hero__heading {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.page-solutions-main-v2 .smv2-hero__title {
    color: var(--smv2-text-primary);
}

.page-solutions-main-v2 .smv2-hero__text {
    color: var(--smv2-fg-secondary);
}

.page-solutions-main-v2 .smv2-trust {
    display: flex;
    align-items: center;
    gap: 12px;
}

.page-solutions-main-v2 .smv2-trust__item {
    display: flex;
    align-items: center;
    gap: 8px;
}

.page-solutions-main-v2 .smv2-trust__item img {
    width: 16px;
    height: 16px;
    display: block;
}

.page-solutions-main-v2 .smv2-trust__item span {
    display: inline-flex;
    gap: 4px;
    font-size: 16px;
    font-weight: 400;
    line-height: 24px;
    letter-spacing: 0.12px;
    white-space: nowrap;
}

.page-solutions-main-v2 .smv2-trust__value {
    color: var(--smv2-fg-primary);
}

.page-solutions-main-v2 .smv2-trust__label {
    color: var(--smv2-fg-tertiary);
}

.page-solutions-main-v2 .smv2-trust__divider {
    width: 1px;
    height: 16px;
    background: rgba(0, 0, 0, 0.1);
    flex-shrink: 0;
}

/* Keep the global primary-md appearance; prevent the hero flex column from
 * stretching this CTA across the text column. */
.page-solutions-main-v2 .smv2-hero__cta {
    align-self: flex-start;
}

.page-solutions-main-v2 .smv2-hero__figure {
    flex-shrink: 0;
    width: 568px;
    max-width: 100%;
    aspect-ratio: 568 / 335.41;
    border-radius: 16px;
    overflow: hidden;
}

.page-solutions-main-v2 .smv2-hero__figure img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* ---------- Filter + cards section ---------- */

.page-solutions-main-v2 .smv2-catalog {
    padding: 32px 0 96px;
}

.page-solutions-main-v2 .smv2-filter {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 48px;
    overflow-x: auto;
    scrollbar-width: none;
}

.page-solutions-main-v2 .smv2-filter::-webkit-scrollbar {
    display: none;
}

.page-solutions-main-v2 .smv2-filter__btn {
    flex-shrink: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 10px 16px;
    border-radius: 12px;
    border: 2px solid transparent;
    background: #fff;
    color: var(--smv2-fg-tertiary);
    white-space: nowrap;
    cursor: pointer;
    box-sizing: border-box;
    transition: border-color 0.15s ease, color 0.15s ease;
}

.page-solutions-main-v2 .smv2-filter__btn:focus-visible {
    outline: 2px solid var(--smv2-fg-primary);
    outline-offset: 2px;
}

.page-solutions-main-v2 .smv2-filter__btn:not(.is-active) {
    border-color: var(--smv2-border);
}

.page-solutions-main-v2 .smv2-filter__btn:not(.is-active):hover {
    border-color: var(--smv2-border-hover);
    color: var(--smv2-fg-primary);
}

.page-solutions-main-v2 .smv2-filter__btn.is-active {
    border-color: var(--smv2-fg-primary);
    color: var(--smv2-fg-primary);
}

.page-solutions-main-v2 .smv2-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 24px;
}

.page-solutions-main-v2 .smv2-card.is-hidden {
    display: none;
}

.page-solutions-main-v2 .smv2-tag {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 10px;
    border-radius: 8px;
    white-space: nowrap;
}

/* Tag background/text colours are per-category and come from the term's ACF fields as
   inline styles — see includes/solution-categories.php. */

/* ---------- Responsive ---------- */

@media (max-width: 1024px) {
    .page-solutions-main-v2 .smv2-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .page-solutions-main-v2 .smv2-hero__figure {
        width: 420px;
    }
}

@media (max-width: 767px) {
    .page-solutions-main-v2 .smv2-hero {
        padding: 48px 0 24px;
    }

    .page-solutions-main-v2 .smv2-hero__wrapper {
        flex-direction: column;
        align-items: stretch;
        gap: 32px;
    }

    .page-solutions-main-v2 .smv2-hero__content {
        max-width: none;
        gap: 24px;
    }

    .page-solutions-main-v2 .smv2-hero__title {
        font-size: 32px;
        line-height: 36px;
        letter-spacing: -0.48px;
    }

    .page-solutions-main-v2 .smv2-hero__text {
        font-size: 16px;
        line-height: 24px;
    }

    .page-solutions-main-v2 .smv2-hero__figure {
        width: 100%;
    }

    .page-solutions-main-v2 .smv2-catalog {
        padding: 24px 0 64px;
    }

    .page-solutions-main-v2 .smv2-filter {
        margin: 0 -20px 32px;
        padding: 0 20px;
        gap: 8px;
    }

    .page-solutions-main-v2 .smv2-grid {
        grid-template-columns: 1fr;
        gap: 16px;
    }

    .page-solutions-main-v2 .smv2-card__arrow {
        display: none;
    }
}


/* final approved interaction states 2026-08-14 */
/* Tabs: 1px default/hover, 2px only when active. */
.page-solutions-main-v2 .smv2-filter__btn { border-width:1px; }
.page-solutions-main-v2 .smv2-filter__btn:not(.is-active):hover { border-width:1px; border-color:var(--smv2-border-hover); color:var(--smv2-fg-primary); }
.page-solutions-main-v2 .smv2-filter__btn:hover img { filter:brightness(0) saturate(100%) invert(12%) sepia(0%) saturate(0%) hue-rotate(0deg) brightness(92%) contrast(92%); }
.page-solutions-main-v2 .smv2-filter__btn.is-active { border-width:2px; border-color:var(--smv2-fg-primary); color:var(--smv2-fg-primary); }
/* Keep the 2px active frame visual without shrinking the button's content box. */
.page-solutions-main-v2 .smv2-filter__btn.is-active {
    border-width: 1px;
    outline: 2px solid var(--smv2-fg-primary);
    outline-offset: -2px;
} 
/* dynamic CMS icon masks and geometry-safe card hover */
.page-solutions-main-v2 .smv2-icon{background-color:currentColor;mask-image:var(--smv2-icon-src);-webkit-mask-image:var(--smv2-icon-src);mask-repeat:no-repeat;-webkit-mask-repeat:no-repeat;mask-position:center;-webkit-mask-position:center;mask-size:16px 16px;-webkit-mask-size:16px 16px}
.page-solutions-main-v2 .smv2-icon--arrow{width:20px;height:20px;flex-basis:20px;mask-size:16px 16px;-webkit-mask-size:16px 16px;color:rgba(0,0,0,.55)}
/* inline SVG color contract */ 
.page-solutions-main-v2 .smv2-icon{background:none!important;mask:none!important;-webkit-mask:none!important;color:rgba(0,0,0,.55)}
.page-solutions-main-v2 .smv2-card__footer .smv2-icon svg{display:block;width:16px;height:16px;overflow:visible}
.page-solutions-main-v2 .smv2-icon.smv2-icon--arrow svg{width:20px!important;height:20px!important;}
.page-solutions-main-v2 .smv2-icon svg *[stroke]{stroke:currentColor!important} 
.page-solutions-main-v2 .smv2-icon svg *[fill]:not([fill="none"]){fill: currentColor !important; fill-opacity: 1;}
.page-solutions-main-v2 .smv2-filter__btn:hover .smv2-icon svg *[fill]:not([fill="none"]),
.page-solutions-main-v2 .smv2-filter__btn.is-active .smv2-icon svg *[fill]:not([fill="none"]){fill:#262626 !important;}
.page-solutions-main-v2 .smv2-tag .smv2-icon{color:currentColor} 

/* final filter icon colors */
.page-solutions-main-v2 .smv2-filter__btn .smv2-icon{color:rgba(0,0,0,.55)!important}
.page-solutions-main-v2 .smv2-filter__btn:hover .smv2-icon,.page-solutions-main-v2 .smv2-filter__btn.is-active .smv2-icon{color:#262626!important}
