/*
 * SBN Developer Notes.
 * Scope: homepage hero and first-screen presentation styles.
 * Used by: templates/front-page.html.
 * Edit risk: medium; hero spacing affects first viewport and image/grid framing.
 * QA: desktop, tablet, mobile, first viewport, CTA alignment, reduced motion.
 */

.sbn-hero {
    background: var(--sbn-navy);
    min-height: clamp(620px, 78vh, 780px);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: var(--sbn-space-lg);
    padding: clamp(64px, 7vw, 104px) var(--sbn-dynamic-edge, 40px) var(--sbn-space-lg);
    position: relative;
    overflow: hidden;
}

.sbn-hero-bg {
    position: absolute;
    inset: 0;
}

.sbn-hero-grid {
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(rgba(201, 163, 90, 0.05) 1px, transparent 1px),
        linear-gradient(90deg, rgba(201, 163, 90, 0.05) 1px, transparent 1px);
    background-size: 64px 64px;
}

.sbn-hero-blob {
    position: absolute;
    right: -80px;
    top: -100px;
    width: 520px;
    height: 520px;
    background: radial-gradient(ellipse, rgba(201, 163, 90, 0.1) 0%, transparent 68%);
    border-radius: 50%;
    pointer-events: none;
}

.sbn-hero-container {
    display: grid;
    grid-template-columns: minmax(0, 0.88fr) minmax(320px, 1.12fr);
    align-items: center;
    gap: clamp(36px, 6vw, 88px);
    position: relative;
    z-index: 2;
    width: 100%;
    max-width: var(--sbn-max-width);
    min-height: 0;
    margin: 0 auto;
}

.sbn-hero-content {
    max-width: 640px;
    position: relative;
    z-index: 3;
}

.sbn-hero-image {
    position: absolute;
    top: 50%;
    right: clamp(-140px, -5vw, -42px);
    z-index: 1;
    width: min(72vw, 980px);
    max-width: none;
    text-align: center;
    pointer-events: none;
    transform: translateY(-50%);
}

.sbn-hero-image img {
    display: block;
    width: 100%;
    max-width: none;
    height: auto;
    margin: 0 auto;
    transform: none;
    transition: none;
}

.sbn-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.26em;
    text-transform: uppercase;
    color: var(--sbn-gold, #c9a35a);
    margin-bottom: 28px;
}

.sbn-eyebrow-dot {
    width: 4px;
    height: 4px;
    border-radius: 50%;
    background: var(--sbn-gold, #c9a35a);
}

.sbn-hero h1 {
    font-family: var(--sbn-serif);
    font-size: clamp(46px, 5.5vw, 80px);
    font-weight: 400;
    line-height: 1.06;
    color: var(--sbn-cream);
    margin: 0 0 6px;
}

.sbn-hero h1 em {
    font-style: italic;
    color: var(--sbn-gold, #c9a35a);
}

.sbn-hero-sub {
    font-size: 17px;
    color: rgba(245, 239, 227, 0.72);
    line-height: 1.65;
    margin: 22px 0 38px;
    max-width: 500px;
}

.sbn-hero-actions {
    display: flex;
    gap: 14px;
    flex-wrap: wrap;
}

.sbn-hero-proof {
    position: relative;
    z-index: 4;
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 0;
    width: 100%;
    max-width: var(--sbn-max-width);
    margin: 0 auto;
    padding-top: var(--sbn-space-sm);
    border-top: 1px solid var(--sbn-mist-soft);
}

.sbn-hero-stat {
    display: grid;
    justify-items: center;
    gap: 6px;
    padding: 0 clamp(16px, 3vw, 34px);
    text-align: center;
}

.sbn-hero-stat + .sbn-hero-stat {
    border-left: 1px solid var(--sbn-mist-soft);
}

.sbn-hero-stat-num {
    font-family: var(--sbn-serif);
    font-size: 38px;
    color: var(--sbn-cream);
    line-height: 1;
}

.sbn-hero-stat-label {
    font-size: 11px;
    color: rgba(245, 239, 227, 0.5);
    letter-spacing: 0.12em;
    text-transform: uppercase;
    margin-top: 5px;
    font-weight: 600;
}

@media (max-width: 980px) {
    .sbn-hero {
        min-height: auto;
        padding: 48px var(--sbn-dynamic-edge) 40px;
    }
    .sbn-hero-container {
        grid-template-columns: 1fr;
        gap: 28px;
        min-height: 0;
    }
    .sbn-hero-content,
    .sbn-hero-image {
        max-width: 100%;
        text-align: center;
    }
    .sbn-hero-content {
        max-width: 680px;
        margin: 0 auto;
    }
    .sbn-hero-image {
        position: relative;
        width: 100%;
        min-height: 260px;
        border-radius: var(--sbn-radius-card);
        pointer-events: auto;
    }
    .sbn-hero-image img {
        width: 100%;
        min-height: 260px;
        transform: none;
    }
    .sbn-hero-sub {
        margin-left: auto;
        margin-right: auto;
    }
    .sbn-hero-actions {
        justify-content: center;
    }
    .sbn-hero-proof {
        position: static;
        margin-top: 40px;
    }
    .sbn-hero-stat {
        text-align: center;
    }
}

@media (max-width: 640px) {
    .sbn-hero-proof {
        display: grid;
        grid-template-columns: repeat(3, minmax(0, 1fr));
        width: 100%;
        gap: 16px;
    }

    .sbn-hero-stat-num {
        font-size: 30px;
    }

    .sbn-hero-stat-label {
        font-size: 9px;
        line-height: 1.3;
    }
}

@media (max-width: 768px) {
    .sbn-hero {
        align-items: stretch;
        gap: var(--sbn-space-sm);
        min-height: auto;
        padding: var(--sbn-space-md) var(--sbn-dynamic-edge);
    }

    .sbn-hero-container {
        display: flex;
        flex-direction: column;
        gap: var(--sbn-space-sm);
        min-height: 0;
    }

    .sbn-hero-content {
        order: 1;
        flex: 0 1 auto;
        max-width: none;
        text-align: center;
    }

    .sbn-hero h1 {
        font-size: clamp(2.25rem, 11vw, 3.6rem);
    }

    .sbn-eyebrow {
        justify-content: center;
        width: 100%;
        margin-bottom: var(--sbn-space-sm);
    }

    .sbn-hero-sub {
        max-width: 36rem;
        margin: var(--sbn-space-sm) auto;
        font-size: 16px;
    }

    .sbn-hero-actions {
        flex-direction: column;
        align-items: stretch;
        justify-content: center;
        width: 100%;
        gap: 10px;
    }

    .sbn-hero-image {
        order: 2;
        position: relative;
        right: auto;
        width: 100%;
        max-height: clamp(120px, 34vw, 170px);
        min-height: 0;
        overflow: hidden;
        text-align: center;
        transform: none;
    }

    .sbn-hero-image img {
        display: block;
        width: 100%;
        max-width: 620px;
        min-height: 0;
        margin: 0 auto;
        transform: none;
        object-fit: contain;
    }

    .sbn-hero-proof {
        order: 3;
        display: grid;
        grid-template-columns: 1fr;
        gap: 12px;
        position: static;
        width: 100%;
        margin-top: 0;
        justify-content: center;
        text-align: center;
    }

    .sbn-hero-stat {
        padding: 12px 0;
        border-top: 1px solid var(--sbn-mist-soft);
        border-left: 0;
        text-align: center;
    }

    .sbn-hero-stat:first-child {
        border-top: 0;
    }

    .sbn-hero-stat + .sbn-hero-stat {
        border-left: 0;
    }
}
