/* ── cover: ShopWise hero block ─────────────────────────────────────────────── */

/* ── Base ──────────────────────────────────────────────────────────────────── */
.nexab-cover {
    position: relative;
    overflow: hidden;
    font-family: var(--nx-font-body, system-ui, sans-serif);
}

/* ── Overlay layout ────────────────────────────────────────────────────────── */
.nexab-cover--overlay {
    display: flex;
    align-items: center;
    min-height: 88vh;
    background-size: cover;
    background-position: center;
    color: #fff;
}
.nexab-cover--overlay:not([style*="background-image"]) {
    background: var(--nx-dark-bg, #112946);
    min-height: 60vh;
}
.nexab-cover__overlay {
    position: absolute;
    inset: 0;
    background:
        linear-gradient(to bottom, rgba(0,0,0,.3) 0%, transparent 40%),
        linear-gradient(to top, rgba(0,0,0,.72) 0%, rgba(0,0,0,.3) 50%, transparent 100%);
    z-index: 1;
}
.nexab-cover--default .nexab-cover__overlay { /* as above */ }
.nexab-cover--dark .nexab-cover__overlay {
    background: linear-gradient(to top, rgba(255,255,255,.88), rgba(255,255,255,.42) 60%, rgba(255,255,255,.12));
}
.nexab-cover--dark { color: var(--nx-heading, #10243d); }
.nexab-cover--dark .nexab-cover__title { color: var(--nx-heading, #10243d); }
.nexab-cover--dark .nexab-cover__sub { color: var(--nx-text, #5a6577); }
.nexab-cover--accent .nexab-cover__overlay { background: linear-gradient(135deg, var(--nx-accent,#0d9488) 0%, rgba(13,148,136,.85) 100%); }

.nexab-cover--overlay .nexab-cover__inner {
    position: relative;
    z-index: 2;
    max-width: 1200px;
    margin: 0 auto;
    padding: 5rem 1.5rem;
    width: 100%;
}

/* ── Split layout ──────────────────────────────────────────────────────────── */
.nexab-cover--split {
    background: var(--nx-surface, #f4f7f6);
    color: var(--nx-heading, #10243d);
}
.nexab-cover--split .nexab-cover__inner {
    max-width: 1200px;
    margin: 0 auto;
    padding: 5rem 1.5rem;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}
.nexab-cover--split .nexab-cover__title { color: var(--nx-heading, #10243d); }
.nexab-cover--split .nexab-cover__sub   { color: var(--nx-text, #5a6577); }
.nexab-cover__image {
    border-radius: var(--nx-radius, 10px);
    overflow: hidden;
    box-shadow: var(--nx-shadow-lg, 0 10px 30px rgba(0,0,0,.12));
}
.nexab-cover__image img { display: block; width: 100%; height: auto; object-fit: cover; }

/* ── Text align center modifier ────────────────────────────────────────────── */
.nexab-cover--center .nexab-cover__content { text-align: center; margin: 0 auto; }
.nexab-cover--center .nexab-cover__actions { justify-content: center; }
.nexab-cover--center .nexab-cover__trust    { justify-content: center; }

/* ── Content ───────────────────────────────────────────────────────────────── */
.nexab-cover__content { max-width: 600px; }

/* Badge */
.nexab-cover__badge {
    display: inline-block;
    background: var(--nx-accent, #0d9488);
    color: #fff;
    font-size: .78rem;
    font-weight: 700;
    letter-spacing: .06em;
    text-transform: uppercase;
    padding: 5px 14px;
    border-radius: 20px;
    margin-bottom: 1.25rem;
}
.nexab-cover--dark .nexab-cover__badge,
.nexab-cover--split .nexab-cover__badge { /* keep teal on light backgrounds */ }

/* Title */
.nexab-cover__title {
    font-family: var(--nx-font-heading, system-ui, sans-serif);
    font-size: clamp(2rem, 5vw, 3.5rem);
    font-weight: 800;
    line-height: 1.1;
    letter-spacing: -.03em;
    margin: 0 0 1.25rem;
    color: #fff;
}
.nexab-cover__title em { font-style: normal; color: var(--nx-accent, #0d9488); }

/* Subtitle */
.nexab-cover__sub {
    font-size: clamp(.95rem, 1.8vw, 1.125rem);
    line-height: 1.7;
    margin: 0 0 2rem;
    color: rgba(255,255,255,.82);
    max-width: 540px;
}

/* ── Buttons ───────────────────────────────────────────────────────────────── */
.nexab-cover__actions {
    display: flex;
    align-items: center;
    gap: 1rem;
    flex-wrap: wrap;
    margin-bottom: 2rem;
}
.nexab-cover__btn {
    display: inline-flex;
    align-items: center;
    gap: .5rem;
    padding: .875rem 2rem;
    border-radius: var(--nx-radius, 10px);
    font-size: .95rem;
    font-weight: 700;
    text-decoration: none;
    transition: all .2s ease;
    white-space: nowrap;
}
.nexab-cover__btn--primary {
    background: var(--nx-accent, #0d9488);
    color: #fff;
    box-shadow: 0 4px 16px rgba(13,148,136,.35);
}
.nexab-cover__btn--primary:hover {
    filter: brightness(1.1);
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(13,148,136,.45);
    color: #fff;
}
.nexab-cover__btn--ghost {
    background: transparent;
    color: #fff;
    border: 2px solid rgba(255,255,255,.5);
}
.nexab-cover__btn--ghost:hover {
    background: rgba(255,255,255,.1);
    border-color: #fff;
    color: #fff;
}
/* Ghost on light backgrounds */
.nexab-cover--dark  .nexab-cover__btn--ghost,
.nexab-cover--split .nexab-cover__btn--ghost {
    color: var(--nx-heading, #10243d);
    border-color: var(--nx-border, #e5e7eb);
}
.nexab-cover--dark  .nexab-cover__btn--ghost:hover,
.nexab-cover--split .nexab-cover__btn--ghost:hover {
    background: var(--nx-heading, #10243d);
    border-color: var(--nx-heading, #10243d);
    color: #fff;
}

/* ── Trust indicators ──────────────────────────────────────────────────────── */
.nexab-cover__trust {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    flex-wrap: wrap;
}
.nexab-cover__trust-item {
    display: flex;
    align-items: center;
    gap: .5rem;
    font-size: .82rem;
    font-weight: 600;
    color: rgba(255,255,255,.75);
}
.nexab-cover__trust-item i { font-size: 1rem; opacity: .8; }
.nexab-cover--dark  .nexab-cover__trust-item,
.nexab-cover--split .nexab-cover__trust-item { color: var(--nx-text, #5a6577); }

/* ── Legacy class aliases (backward compat with old nexa-* classes) ──────── */
.nexa-cover { display: none; } /* hide old markup if somehow still present */

/* ── Responsive ────────────────────────────────────────────────────────────── */
@media (max-width: 900px) {
    .nexab-cover--split .nexab-cover__inner { grid-template-columns: 1fr; gap: 2.5rem; padding: 3rem 1.5rem; }
    .nexab-cover__image { order: -1; max-height: 380px; }
    .nexab-cover__image img { height: 380px; }
}
@media (max-width: 600px) {
    .nexab-cover--overlay .nexab-cover__inner { padding: 3.5rem 1.5rem; }
    .nexab-cover__actions { flex-direction: column; align-items: flex-start; }
    .nexab-cover--center .nexab-cover__actions { align-items: center; }
    .nexab-cover__trust { gap: 1rem; }
}
