/* =================================================================
 * Solution page template (page-solution.php)
 * Enqueued only by that template. Relies on the tokens + .sh-wrap,
 * .sh-btn, .sh-eyebrow and .sh-arrow-link helpers in theme-2026.css.
 *
 * Text colours use the [data-bs-theme="dark"] body prefix so they win over
 * Bootstrap's dark-mode colours (see CLAUDE.md, "specificity trap").
 * ================================================================= */

.sh-sol { background: var(--sh-light); overflow-x: clip; }
.sh-sol h2, .sh-sol h3, .sh-sol h4 { letter-spacing: -.01em; }

/* Section headings on light backgrounds */
[data-bs-theme="dark"] body .sh-sol-overview h2,
[data-bs-theme="dark"] body .sh-sol-picker h2,
[data-bs-theme="dark"] body .sh-sol-resources h2,
[data-bs-theme="dark"] body .sh-sol-missing h1 {
    color: var(--sh-dark); font-weight: 700; font-size: clamp(1.7rem, 2.6vw, 2.3rem); line-height: 1.15; margin: 0 0 1rem;
}
[data-bs-theme="dark"] body .sh-sol-missing { padding: 96px 0; color: var(--sh-text); }

/* Extra button variants */
.sh-btn--outline { background: transparent; color: #fff; box-shadow: inset 0 0 0 1.5px rgba(255,255,255,.45); }
.sh-btn--outline:hover { background: rgba(255,255,255,.08); color: #fff; box-shadow: inset 0 0 0 1.5px #fff; }
.sh-btn--ghost-dark { background: #fff; color: var(--sh-text); box-shadow: inset 0 0 0 1.5px var(--sh-border); }
.sh-btn--ghost-dark:hover { background: var(--sh-light); color: var(--sh-dark); }

/* ---- Hero --------------------------------------------------------- */
.sh-sol-hero {
    position: relative; isolation: isolate;
    background:
        radial-gradient(900px 420px at 85% 10%, rgba(241,90,41,.16), transparent 60%),
        linear-gradient(180deg, var(--sh-darker) 0%, var(--sh-dark) 100%);
    padding: 72px 0 0;
    color: #fff;
}
/* Faint measurement grid */
.sh-sol-hero::before {
    content: ""; position: absolute; inset: 0; z-index: -1;
    background-image:
        linear-gradient(rgba(255,255,255,.045) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255,255,255,.045) 1px, transparent 1px);
    background-size: 64px 64px;
    mask-image: linear-gradient(180deg, #000 30%, transparent 95%);
}
.sh-sol-hero__trace {
    position: absolute; left: 0; right: 0; bottom: 0; z-index: -1;
    width: 100%; height: 220px; opacity: .9;
}
.sh-sol-hero__inner {
    display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr);
    gap: 56px; align-items: center;
}
.sh-sol-crumbs { font-size: .8rem; font-weight: 600; letter-spacing: .04em; text-transform: uppercase; margin-bottom: 1.1rem; display: flex; gap: .55rem; }
[data-bs-theme="dark"] body .sh-sol-crumbs,
[data-bs-theme="dark"] body .sh-sol-crumbs a { color: var(--sh-muted-light); text-decoration: none; }
[data-bs-theme="dark"] body .sh-sol-crumbs a:hover { color: #fff; }
[data-bs-theme="dark"] body .sh-sol-crumbs span:last-child { color: var(--sh-grad-start); }

[data-bs-theme="dark"] body .sh-sol-hero__title {
    color: #fff !important; font-weight: 800; font-size: clamp(2.4rem, 5vw, 3.9rem); line-height: 1.02; margin: 0 0 1.25rem; letter-spacing: -.025em;
}
[data-bs-theme="dark"] body .sh-sol-hero__intro { color: #c9d1da; font-size: 1.08rem; line-height: 1.65; margin: 0 0 2rem; max-width: 40em; }
.sh-sol-hero__actions { display: flex; flex-wrap: wrap; gap: .75rem; }

.sh-sol-hero__media { margin: 0; position: relative; }
.sh-sol-hero__media img {
    display: block; width: 100%; height: auto; border-radius: 14px;
    border: 1px solid rgba(255,255,255,.12);
    box-shadow: 0 30px 60px -20px rgba(0,0,0,.7), 0 0 0 8px rgba(255,255,255,.03);
    transform: perspective(1400px) rotateY(-7deg) rotateX(2deg);
    transition: transform .5s ease;
}
.sh-sol-hero__media:hover img { transform: perspective(1400px) rotateY(0) rotateX(0); }

.sh-sol-stats {
    list-style: none; margin: 64px 0 0; padding: 0;
    display: grid; grid-template-columns: repeat(4, 1fr);
    border-top: 1px solid rgba(255,255,255,.12);
}
.sh-sol-stats li { padding: 26px 24px 34px; border-left: 1px solid rgba(255,255,255,.12); }
.sh-sol-stats li:first-child { border-left: 0; padding-left: 0; }
[data-bs-theme="dark"] body .sh-sol-stats strong { display: block; color: #fff; font-size: clamp(1.5rem, 2.6vw, 2.1rem); font-weight: 800; line-height: 1.1; }
[data-bs-theme="dark"] body .sh-sol-stats span { display: block; color: var(--sh-muted-light); font-size: .85rem; margin-top: .3rem; }

/* ---- Overview + software callout ---------------------------------- */
.sh-sol-overview { padding: 96px 0 72px; }
.sh-sol-overview__grid { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); gap: 56px; align-items: start; }
[data-bs-theme="dark"] body .sh-sol-overview__copy p:not(.sh-eyebrow) { color: var(--sh-text); font-size: 1.1rem; line-height: 1.75; }

.sh-sol-software {
    position: relative; background: var(--sh-dark); border-radius: 12px; padding: 40px 36px 34px;
    box-shadow: 0 20px 40px -24px rgba(0,0,0,.45);
    overflow: hidden;
}
.sh-sol-software::after { /* orange accent bar */
    content: ""; position: absolute; top: 0; left: 0; right: 0; height: 4px;
    background: linear-gradient(90deg, var(--sh-grad-start), var(--sh-grad-end));
}
.sh-sol-software__badge {
    width: 48px; height: 48px; border-radius: 10px; display: grid; place-items: center; margin-bottom: 1.1rem;
    background: rgba(47,170,84,.14); color: var(--sh-green); font-size: 1.25rem;
}
[data-bs-theme="dark"] body .sh-sol-software h3 { color: #fff !important; font-size: 1.4rem; font-weight: 700; margin: 0 0 .9rem; }
[data-bs-theme="dark"] body .sh-sol-software p { color: #c9d1da; font-size: .96rem; line-height: 1.7; }
.sh-sol-tags { list-style: none; margin: 1.25rem 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: .5rem; }
[data-bs-theme="dark"] body .sh-sol-tags li {
    font-size: .78rem; font-weight: 700; color: #bffbff; padding: .38rem .7rem; border-radius: 999px;
    background: rgba(191,251,255,.07); border: 1px solid rgba(191,251,255,.18);
    font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
}

/* ---- Recommended solutions picker ---------------------------------- */
.sh-sol-picker { padding: 24px 0 88px; scroll-margin-top: 24px; }
[data-bs-theme="dark"] body .sh-sol-picker__intro { color: var(--sh-muted); margin: -.25rem 0 2rem; }
.sh-sol-picker__grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.sh-sol-pick {
    display: flex; flex-direction: column; background: #fff; border-radius: 12px; padding: 20px 22px 22px;
    border: 1px solid var(--sh-border); text-decoration: none;
    box-shadow: 0 2px 14px rgba(0,0,0,.05);
    transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
}
.sh-sol-pick:hover { transform: translateY(-4px); border-color: rgba(241,90,41,.45); box-shadow: 0 16px 32px -16px rgba(0,0,0,.25); }
.sh-sol-pick__img { height: 132px; display: grid; place-items: center; margin-bottom: 14px; border-radius: 8px; background: var(--sh-light); overflow: hidden; }
.sh-sol-pick__img img { max-height: 112px; max-width: 85%; width: auto; object-fit: contain; mix-blend-mode: multiply; }
.sh-sol-pick__img.is-wide img { mix-blend-mode: normal; max-height: none; max-width: none; width: 100%; height: 100%; object-fit: cover; }
[data-bs-theme="dark"] body .sh-sol-pick__name { color: var(--sh-dark); font-weight: 800; font-size: 1.2rem; }
[data-bs-theme="dark"] body .sh-sol-pick__app { color: var(--sh-muted); font-size: .92rem; line-height: 1.5; margin: .35rem 0 1rem; flex: 1; }
[data-bs-theme="dark"] body .sh-sol-pick__more { color: var(--sh-orange-link); font-weight: 700; font-size: .85rem; display: inline-flex; gap: .4rem; align-items: center; }
.sh-sol-pick__more i { font-size: .75em; transition: transform .15s ease; }
.sh-sol-pick:hover .sh-sol-pick__more i { transform: translateY(2px); }

/* ---- Product detail blocks ---------------------------------------- */
.sh-sol-products { background: #fff; padding: 40px 0; }
.sh-sol-product {
    display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr); gap: 64px; align-items: center;
    padding: 72px 0; border-top: 1px solid var(--sh-border);
    scroll-margin-top: 24px;
}
.sh-sol-product:first-child { border-top: 0; }
.sh-sol-product--flip .sh-sol-product__media { order: 2; }

.sh-sol-product__media {
    position: relative; aspect-ratio: 5 / 4; border-radius: 16px; display: grid; place-items: center;
    background: radial-gradient(circle at 50% 40%, #fff 0%, var(--sh-cream) 70%);
    overflow: hidden;
}
.sh-sol-product__media::before { /* soft spectrum glow behind the unit */
    content: ""; position: absolute; left: 10%; right: 10%; bottom: 14%; height: 18%;
    background: radial-gradient(ellipse at center, rgba(0,0,0,.14), transparent 70%);
    filter: blur(6px);
}
.sh-sol-product__media img { position: relative; max-width: 78%; max-height: 78%; width: auto; height: auto; mix-blend-mode: multiply; } /* drops the photos' white backgrounds */
.sh-sol-product__media.is-wide { aspect-ratio: auto; background: var(--sh-dark); padding: 14px; }
.sh-sol-product__media.is-wide::before { display: none; }
.sh-sol-product__media.is-wide img { mix-blend-mode: normal; max-width: 100%; max-height: none; width: 100%; border-radius: 8px; }

[data-bs-theme="dark"] body .sh-sol-product__name { color: var(--sh-dark); font-weight: 800; font-size: clamp(1.8rem, 3vw, 2.4rem); line-height: 1.1; margin: 0 0 .8rem; }
[data-bs-theme="dark"] body .sh-sol-product__ideal {
    display: inline-flex; flex-wrap: wrap; gap: .5rem; align-items: baseline;
    color: var(--sh-text); font-weight: 600; font-size: .95rem; margin: 0 0 1.1rem;
}
.sh-sol-product__ideal span {
    color: #fff; background: var(--sh-green); border-radius: 4px; padding: .18rem .5rem;
    font-size: .7rem; font-weight: 800; text-transform: uppercase; letter-spacing: .06em;
}
[data-bs-theme="dark"] body .sh-sol-product__desc { color: var(--sh-text); font-size: 1.03rem; line-height: 1.7; margin: 0 0 1.5rem; }
[data-bs-theme="dark"] body .sh-sol-product__feat-title { color: var(--sh-muted); font-size: .78rem; font-weight: 800; text-transform: uppercase; letter-spacing: .08em; margin: 0 0 .8rem; }
.sh-sol-product__features {
    list-style: none; margin: 0 0 2rem; padding: 0;
    display: grid; grid-template-columns: 1fr 1fr; gap: .7rem 1.5rem;
}
[data-bs-theme="dark"] body .sh-sol-product__features li { position: relative; padding-left: 1.7rem; color: var(--sh-text); font-size: .95rem; line-height: 1.45; }
.sh-sol-product__features li::before {
    content: ""; position: absolute; left: 0; top: .15em; width: 1.05rem; height: 1.05rem; border-radius: 50%;
    background: rgba(47,170,84,.14) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M4 8.4l2.6 2.5L12 5.5' fill='none' stroke='%2325934a' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 70% no-repeat;
}
.sh-sol-product__actions { display: flex; flex-wrap: wrap; gap: .75rem; }

/* ---- Closing CTA -------------------------------------------------- */
.sh-sol-cta {
    position: relative; overflow: hidden;
    background: linear-gradient(120deg, var(--sh-grad-start) 0%, var(--sh-grad-end) 100%);
    padding: 80px 0;
}
.sh-sol-cta::before {
    content: ""; position: absolute; inset: 0;
    background: repeating-linear-gradient(90deg, rgba(255,255,255,.07) 0 1px, transparent 1px 64px);
}
.sh-sol-cta__inner { position: relative; display: grid; grid-template-columns: minmax(0, 1.6fr) auto; gap: 48px; align-items: center; }
[data-bs-theme="dark"] body .sh-sol-cta__text { color: #fff; font-size: clamp(1.25rem, 2.2vw, 1.6rem); font-weight: 600; line-height: 1.45; margin: 0; }
.sh-sol-cta__actions { display: flex; flex-direction: column; gap: .75rem; }
.sh-sol-cta .sh-btn:not(.sh-btn--ghost) { background: var(--sh-dark); }
.sh-sol-cta .sh-btn:not(.sh-btn--ghost):hover { background: #000; }
.sh-sol-cta .sh-btn { justify-content: center; }

/* ---- Resources ---------------------------------------------------- */
.sh-sol-resources { padding: 96px 0 40px; }
.sh-sol-resources__grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; margin-top: 1.5rem; }
.sh-sol-res {
    display: flex; flex-direction: column; gap: .6rem; background: #fff; border-radius: 10px; padding: 22px;
    border: 1px solid var(--sh-border); border-top: 3px solid var(--sh-orange); text-decoration: none;
    transition: transform .18s ease, box-shadow .18s ease;
}
.sh-sol-res:hover { transform: translateY(-3px); box-shadow: 0 14px 28px -16px rgba(0,0,0,.25); }
[data-bs-theme="dark"] body .sh-sol-res__type { color: var(--sh-muted); font-size: .72rem; font-weight: 800; text-transform: uppercase; letter-spacing: .08em; }
[data-bs-theme="dark"] body .sh-sol-res__title { color: var(--sh-dark); font-weight: 700; font-size: 1.02rem; line-height: 1.35; flex: 1; }

/* ---- Videos ------------------------------------------------------- */
.sh-sol-videos { padding: 56px 0 104px; }
[data-bs-theme="dark"] body .sh-sol-videos h2 { color: var(--sh-dark); font-weight: 700; font-size: clamp(1.7rem, 2.6vw, 2.3rem); margin: 0 0 1.5rem; }
.sh-sol-videos__grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px 20px; }
.sh-sol-video { text-decoration: none; display: block; }
.sh-sol-video__thumb { position: relative; display: block; aspect-ratio: 16 / 9; border-radius: 10px; overflow: hidden; background: var(--sh-dark); }
.sh-sol-video__thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform .35s ease, opacity .2s ease; }
.sh-sol-video:hover .sh-sol-video__thumb img { transform: scale(1.04); opacity: .85; }
.sh-sol-video__play {
    position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%);
    width: 58px; height: 58px; border-radius: 50%; display: grid; place-items: center;
    background: var(--sh-orange); color: #fff; font-size: 1.05rem; padding-left: 3px;
    box-shadow: 0 8px 24px rgba(0,0,0,.35); transition: transform .18s ease;
}
.sh-sol-video:hover .sh-sol-video__play { transform: translate(-50%, -50%) scale(1.1); }
[data-bs-theme="dark"] body .sh-sol-video__title { display: block; color: var(--sh-dark); font-weight: 700; line-height: 1.35; margin-top: .8rem; }
.sh-sol-video:hover .sh-sol-video__title { color: var(--sh-orange-link) !important; }

.sh-sol-modal .modal-content { background: #000; border: 0; border-radius: 10px; overflow: hidden; }
.sh-sol-modal .btn-close { position: absolute; top: -40px; right: 0; opacity: .9; }
.sh-sol-modal .modal-content { overflow: visible; }

/* ---- Responsive --------------------------------------------------- */
@media (max-width: 991.98px) {
    .sh-sol-hero { padding-top: 48px; }
    .sh-sol-hero__inner,
    .sh-sol-overview__grid,
    .sh-sol-product,
    .sh-sol-cta__inner { grid-template-columns: 1fr; gap: 36px; }
    .sh-sol-hero__media img { transform: none; }
    .sh-sol-stats { grid-template-columns: repeat(2, 1fr); margin-top: 40px; }
    .sh-sol-stats li { padding: 20px 16px 24px; }
    .sh-sol-stats li:nth-child(odd) { border-left: 0; padding-left: 0; }
    .sh-sol-stats li:nth-child(n+3) { border-top: 1px solid rgba(255,255,255,.12); }
    .sh-sol-picker__grid { grid-template-columns: repeat(2, 1fr); }
    .sh-sol-product { padding: 56px 0; }
    .sh-sol-product--flip .sh-sol-product__media { order: 0; }
    .sh-sol-resources__grid { grid-template-columns: repeat(2, 1fr); }
    .sh-sol-videos__grid { grid-template-columns: repeat(2, 1fr); }
    .sh-sol-cta__actions { flex-direction: row; flex-wrap: wrap; }
}
@media (max-width: 575.98px) {
    .sh-sol-overview { padding: 64px 0 48px; }
    .sh-sol-software { padding: 32px 22px 26px; }
    .sh-sol-picker__grid,
    .sh-sol-resources__grid,
    .sh-sol-videos__grid,
    .sh-sol-product__features { grid-template-columns: 1fr; }
    .sh-sol-hero__actions,
    .sh-sol-cta__actions { flex-direction: column; }
    .sh-sol-hero__actions .sh-btn,
    .sh-sol-cta__actions .sh-btn { width: 100%; justify-content: center; }
}
@media (prefers-reduced-motion: reduce) {
    .sh-sol *, .sh-sol *::before { transition: none !important; }
}
