/* =============================================================
   SDASH Hero Business — Shortcode Styles
   Mobile First | Breakpoints: xs 480px · md 769px · lg 1025px

   Inline variables set by PHP:
   --shb-bg, --shb-accent, --shb-card, --shb-min-height
   ============================================================= */


/* =============================================================
   Wrapper
   ============================================================= */
.sdash-hero-business-sc {
    min-height: var(--shb-min-height, 520px);
    display: flex;
    align-items: center;
    position: relative;
    overflow: hidden;
    color: #fff;
    width: 100%;
}

/* Subtle diamond background pattern */
.sdash-hero-business-sc::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(30deg,  #0f172a 12%, transparent 12.5%, transparent 87%, #0f172a 87.5%, #0f172a),
        linear-gradient(150deg, #0f172a 12%, transparent 12.5%, transparent 87%, #0f172a 87.5%, #0f172a),
        linear-gradient(30deg,  #0f172a 12%, transparent 12.5%, transparent 87%, #0f172a 87.5%, #0f172a),
        linear-gradient(150deg, #0f172a 12%, transparent 12.5%, transparent 87%, #0f172a 87.5%, #0f172a);
    background-size: 80px 140px;
    background-position: 0 0, 0 0, 40px 70px, 40px 70px;
    opacity: .05;
    pointer-events: none;
}


/* =============================================================
   Inner container
   ============================================================= */
.shb-inner {
    position: relative;
    z-index: 1;
    width: 100%;
    padding-top: 40px;       /* Mobile */
    padding-bottom: 40px;
}

@media (min-width: 769px) {
    .shb-inner {
        padding-top: 60px;
        padding-bottom: 60px;
    }
}


/* =============================================================
   Column grid
   Mobile: 1 column, card on top
   md (769px+): 2 columns (text left, card right)
   lg (1025px+): wider card column
   ============================================================= */
.shb-columns {
    display: grid;
    grid-template-columns: 1fr;    /* Mobile */
    gap: 36px;
}

@media (min-width: 769px) {
    .shb-columns {
        grid-template-columns: 1fr 320px;
        gap: 40px;
    }
}

@media (min-width: 1025px) {
    .shb-columns {
        grid-template-columns: 1fr 420px;
        gap: 60px;
    }
}


/* =============================================================
   Left column — text
   Mobile: centered
   md+: left-aligned
   ============================================================= */
.shb-col-text,
.shb-col-text * { text-align: center; }    /* Mobile */

@media (min-width: 769px) {
    .shb-col-text,
    .shb-col-text * { text-align: left; }
}

/* Badge */
.shb-badge {
    display: block;                         /* Mobile: block for centering */
    text-align: center;
    background: rgba(255,255,255,.1);
    border: 1px solid rgba(255,255,255,.2);
    border-radius: 50px;
    padding: 6px 18px;
    font-size: .85em;
    font-weight: 600;
    color: #fff;
    margin-bottom: 20px;
}

@media (min-width: 769px) {
    .shb-badge {
        display: inline-block;
        text-align: left;
    }
}

/* Headline */
.shb-headline {
    font-size: clamp(1.8rem, 5vw, 2.8rem);    /* Mobile */
    font-weight: 800;
    line-height: 1.12;
    color: #fff;
    margin: 0 0 22px;
    letter-spacing: -.01em;
}

@media (min-width: 1025px) {
    .shb-headline { font-size: clamp(2rem, 4.5vw, 3.6rem); }
}

/* Accent color */
.shb-highlight { color: var(--shb-accent, #e8893a); }

/* Subtext */
.shb-subtext {
    font-size: 1.05em;
    color: rgba(255,255,255,.65);
    line-height: 1.7;
    margin-bottom: 34px;
    max-width: 520px;
    margin-left: auto;       /* Mobile: centered */
    margin-right: auto;
}

@media (min-width: 769px) {
    .shb-subtext {
        margin-left: 0;
        margin-right: 0;
    }
}


/* =============================================================
   Buttons
   Mobile: stacked, centered
   xs (480px+): side by side
   md+: left-aligned
   ============================================================= */
.shb-buttons {
    display: flex;
    flex-direction: column;    /* Mobile */
    gap: 14px;
    margin-bottom: 44px;
    align-items: center;
    justify-content: center;
}

@media (min-width: 480px) {
    .shb-buttons {
        flex-direction: row;
        flex-wrap: wrap;
    }
}

@media (min-width: 769px) {
    .shb-buttons {
        justify-content: flex-start;
        align-items: flex-start;
    }
}

.shb-btn {
    display: inline-block;
    padding: 13px 28px;
    border-radius: 50px;
    font-size: .95em;
    font-weight: 600;
    text-decoration: none;
    text-align: center;
    transition: transform .15s, box-shadow .15s, background .2s;
    cursor: pointer;
}
.shb-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0,0,0,.25);
}

.shb-btn--outline {
    background: transparent;
    color: #fff !important;
    border: 2px solid rgba(255,255,255,.7);
}
.shb-btn--outline:hover {
    background: rgba(255,255,255,.1);
    border-color: #fff;
}

.shb-btn--accent {
    background: var(--shb-accent, #e8893a);
    color: #fff !important;
    border: 2px solid transparent;
}
.shb-btn--accent:hover { filter: brightness(1.1); }


/* =============================================================
   Stats row
   Mobile: centered, compact spacing
   md+: left-aligned
   ============================================================= */
.shb-stats {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;    /* Mobile */
    gap: 0;
}

@media (min-width: 769px) {
    .shb-stats { justify-content: flex-start; }
}

.shb-stat {
    display: flex;
    flex-direction: column;
    gap: 3px;
    padding: 0 20px 0 0;
    margin-right: 20px;
    border-right: 1px solid rgba(255,255,255,.12);
}
.shb-stat:last-child {
    border-right: none;
    padding-right: 0;
    margin-right: 0;
}

@media (min-width: 1025px) {
    .shb-stat { padding-right: 32px; margin-right: 32px; }
}

.shb-stat-value {
    font-size: 1.4em;        /* Mobile */
    font-weight: 800;
    line-height: 1;
    color: #fff;
}
.shb-stat-label {
    font-size: .76em;
    color: rgba(255,255,255,.45);
    line-height: 1.3;
}

@media (min-width: 1025px) {
    .shb-stat-value { font-size: 1.75em; }
}


/* =============================================================
   Right column — card
   Mobile: card on top (order: -1), landscape aspect ratio
   md+: card on right, portrait aspect ratio
   ============================================================= */
.shb-col-card {
    display: flex;
    justify-content: center;
    order: -1;               /* Mobile: card appears above text */
}

@media (min-width: 769px) {
    .shb-col-card {
        order: 0;            /* Desktop: natural order */
        justify-content: flex-start;
    }
}

.shb-card {
    background: var(--shb-card, #e8893a);
    border-radius: 28px;
    width: 100%;
    max-width: 280px;        /* Mobile */
    aspect-ratio: 4 / 3;    /* Mobile: wider than tall */
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 20px;
    padding: 40px;
    position: relative;
    overflow: hidden;
    box-shadow:
        0 24px 60px color-mix(in srgb, var(--shb-card, #e8893a) 40%, transparent),
        0 8px 24px rgba(0,0,0,.3);
}

@media (min-width: 769px) {
    .shb-card {
        max-width: 360px;
        aspect-ratio: 3 / 4;    /* Desktop: taller than wide */
    }
}

/* Gloss reflection overlay */
.shb-card::before {
    content: '';
    position: absolute;
    top: -40%; left: -25%;
    width: 55%; height: 55%;
    background: rgba(255,255,255,.18);
    border-radius: 50%;
    filter: blur(28px);
    pointer-events: none;
}

.shb-card-img {
    width: 100%;
    max-height: 220px;
    object-fit: contain;
    border-radius: 12px;
}

.shb-card-icon {
    width: 60px;        /* Mobile */
    height: 60px;
    flex-shrink: 0;
}

@media (min-width: 769px) {
    .shb-card-icon { width: 90px; height: 90px; }
}

.shb-card-title {
    font-size: 1.3em;
    font-weight: 700;
    color: #fff;
    text-align: center;
    position: relative;
    z-index: 1;
}
