/* Solutions landing and detail. Loaded after layout.css. */

.nx-sol-hero__frame {
    position: relative;
    min-height: 280px;
}
.nx-sol-hero__photo {
    width: 100%;
    height: 420px;
    object-fit: cover;
    border-radius: 28px;
    box-shadow: 0 24px 50px rgba(0, 0, 0, 0.28);
}
.nx-sol-hero__float {
    position: absolute;
    width: min(46%, 220px);
    height: auto;
    right: 4%;
    bottom: 6%;
    border-radius: 16px;
    box-shadow: 0 16px 36px rgba(0, 0, 0, 0.35);
    animation: nx-sol-float 5.5s ease-in-out infinite;
}
[dir="rtl"] .nx-sol-hero__float { right: auto; left: -4%; }

.nx-sol-markets__row { display: flex; flex-wrap: wrap; gap: 0.65rem; margin: 1.1rem 0 0; padding: 0; list-style: none; }
.nx-sol-markets__row li {
    display: inline-flex; align-items: center; gap: 0.5rem;
    background: #fff; color: #14201c;
    border-radius: 999px; padding: 0.4rem 0.8rem 0.4rem 0.45rem;
    font-weight: 650; box-shadow: 0 8px 20px rgba(20, 32, 28, 0.06);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.nx-sol-markets__row li:hover { transform: translateY(-3px); box-shadow: 0 12px 24px rgba(15, 118, 110, 0.16); }
.nx-sol-markets__flag { width: 28px; height: 21px; }
[data-theme="dark"] .nx-sol-markets__row li { background: #1a2622; color: #eef4f1; }

.nx-sol-card { display: flex; flex-direction: column; overflow: hidden; text-decoration: none; color: inherit; height: 100%; }
.nx-sol-card__media { overflow: hidden; aspect-ratio: 16 / 10; background: #d7ebe6; }
.nx-sol-card__media img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.45s ease; }
.nx-sol-card:hover .nx-sol-card__media img { transform: scale(1.06); }
.nx-sol-card__body { display: flex; flex-direction: column; gap: 0.45rem; padding: 1rem 1.05rem 1.1rem; flex: 1; }
.nx-sol-card__go {
    display: inline-flex; align-items: center; gap: 0.4rem;
    margin-top: auto; align-self: flex-start;
    padding: 0.55rem 0.95rem; border-radius: 999px;
    background: #0f766e; color: #fff; font-weight: 700;
    transition: background 0.2s ease, color 0.2s ease, transform 0.2s ease;
}
.nx-sol-card__go svg { transition: transform 0.2s ease; }
.nx-sol-card:hover .nx-sol-card__go { background: #d4af37; color: #14201c; }
.nx-sol-card:hover .nx-sol-card__go svg { transform: translateX(4px); }
[dir="rtl"] .nx-sol-card:hover .nx-sol-card__go svg { transform: translateX(-4px) scaleX(-1); }
[dir="rtl"] .nx-sol-card__go svg { transform: scaleX(-1); }

html.js .nx-sol-shelf__grid .nx-sol-card:nth-child(2) { transition-delay: 70ms; }
html.js .nx-sol-shelf__grid .nx-sol-card:nth-child(3) { transition-delay: 140ms; }
html.js .nx-sol-shelf__grid .nx-sol-card:nth-child(4) { transition-delay: 210ms; }
html.js .nx-sol-shelf__grid .nx-sol-card:nth-child(5) { transition-delay: 280ms; }
html.js .nx-sol-shelf__grid .nx-sol-card:nth-child(6) { transition-delay: 350ms; }

.nx-sold-related__btn {
    display: flex; align-items: center; justify-content: space-between; gap: 0.6rem;
    min-height: 4.2rem; padding: 0.85rem 1rem;
    background: #fff; color: #14201c; text-decoration: none; font-weight: 700;
    border-radius: 16px; border: 1px solid rgba(15, 118, 110, 0.18);
    transition: transform 0.2s ease, background 0.2s ease, color 0.2s ease, box-shadow 0.2s ease;
}
.nx-sold-related__btn svg { flex: 0 0 auto; transition: transform 0.2s ease; }
.nx-sold-related__btn:hover { transform: translateY(-3px); background: #0f766e; color: #fff; box-shadow: 0 12px 24px rgba(15, 118, 110, 0.22); }
.nx-sold-related__btn:hover svg { transform: translateX(4px); }
[dir="rtl"] .nx-sold-related__btn svg { transform: scaleX(-1); }
[dir="rtl"] .nx-sold-related__btn:hover svg { transform: translateX(-4px) scaleX(-1); }
[data-theme="dark"] .nx-sold-related__btn { background: #1a2622; color: #eef4f1; }

.nx-sol-ask__panel {
    display: grid; grid-template-columns: 0.9fr 1.1fr; gap: 1.4rem;
    background: #fff; border-radius: 28px; padding: 1.2rem;
    box-shadow: 0 18px 40px rgba(20, 32, 28, 0.08);
}
.nx-sol-ask__copy h2 { margin: 0.2rem 0 0.45rem; }
.nx-sol-ask__copy img { width: 100%; height: 240px; object-fit: cover; border-radius: 18px; margin-top: 0.8rem; }
.nx-sol-ask__form .nx-field { position: relative; }
.nx-field--ico input,
.nx-field--ico select,
.nx-field--ico textarea { padding-inline-start: 2.45rem; }
.nx-field__glyph {
    position: absolute; inset-inline-start: 0.75rem; bottom: 0.78rem;
    color: #0f766e; pointer-events: none;
}
.nx-field--text .nx-field__glyph { bottom: auto; top: 2.35rem; }
.nx-sol-ask input:focus,
.nx-sol-ask select:focus,
.nx-sol-ask textarea:focus,
.nx-sol-pop input:focus,
.nx-sol-pop select:focus,
.nx-sol-pop textarea:focus {
    outline: none;
    border-color: #0f766e;
    box-shadow: 0 0 0 4px rgba(15, 118, 110, 0.16);
    transition: box-shadow 0.2s ease, border-color 0.2s ease;
}
[data-theme="dark"] .nx-sol-ask__panel { background: #16211e; }

.nx-sol-pop[hidden] { display: none; }
.nx-sol-pop {
    position: fixed; inset: 0; z-index: 90;
    display: grid; place-items: center;
    padding: 1rem; background: rgba(8, 20, 18, 0.62);
}
.nx-sol-pop__sheet {
    position: relative;
    display: grid; grid-template-columns: 0.85fr 1.15fr;
    width: min(880px, 100%);
    max-height: min(92vh, 760px);
    overflow: auto;
    background: #fff; color: #14201c;
    border-radius: 22px;
    box-shadow: 0 30px 70px rgba(0, 0, 0, 0.28);
    animation: nx-sol-pop 0.35s ease;
}
.nx-sol-pop__x {
    position: absolute; top: 0.7rem; left: 0.7rem; z-index: 2;
    width: 42px; height: 42px; border: 0; border-radius: 50%;
    background: #fff; color: #14201c; font-size: 1.45rem; line-height: 1;
    cursor: pointer; box-shadow: 0 8px 18px rgba(0, 0, 0, 0.18);
}
.nx-sol-pop__x:hover { background: #14201c; color: #fff; }
.nx-sol-pop__art { min-height: 220px; background: #0b3b36; }
.nx-sol-pop__art img { width: 100%; height: 100%; object-fit: cover; display: block; }
.nx-sol-pop__body { padding: 1.2rem 1.15rem 1.15rem; }
.nx-sol-pop__body h2 { margin: 0.15rem 0 0.35rem; font-size: 1.35rem; }
.nx-sol-pop__body .nx-field { position: relative; margin-bottom: 0.65rem; }
[data-theme="dark"] .nx-sol-pop__sheet { background: #14201c; color: #eef4f1; }

.nx-btn.nx-sol-ask-open { border-color: rgba(255, 255, 255, 0.7); color: #fff; background: transparent; }
.nx-sol-hero .nx-btn.nx-sol-ask-open:hover,
.nx-sold-hero .nx-btn.nx-sol-ask-open:hover { background: #fff; color: #06201c; }

@media (max-width: 860px) {
    .nx-sol-hero__photo { height: 260px; }
    .nx-sol-hero__float { display: none; }
    .nx-sol-ask__panel,
    .nx-sol-pop__sheet { grid-template-columns: 1fr; }
    .nx-sol-pop__art { height: 160px; }
}

@keyframes nx-sol-float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-8px); }
}
@keyframes nx-sol-pop {
    from { opacity: 0; transform: translateY(12px) scale(0.98); }
    to { opacity: 1; transform: none; }
}
@media (prefers-reduced-motion: reduce) {
    .nx-sol-hero__float,
    .nx-sol-pop__sheet { animation: none; }
}
