/* Shared warm page hero — use via templates/partials/mg_page_hero.html */

.mg-page-hero {
    --hero-ink: #1c1917;
    --hero-muted: #57534e;
    --hero-text: 1.5rem;
    --hero-heading-sm: 1.35rem;
    position: relative;
    overflow: hidden;
    padding: 3.5rem 0 4rem;
    margin-bottom: 1.5rem;
    background: linear-gradient(
        128deg,
        #fff7ed 0%,
        #ffedd5 18%,
        #fecdd3 42%,
        #ddd6fe 72%,
        #c4b5fd 100%
    );
}

.mg-page-hero--compact {
    padding: 2.5rem 0 3rem;
    margin-bottom: 1.25rem;
}

.mg-page-hero::before {
    content: "";
    position: absolute;
    inset: -20% auto auto -10%;
    width: 420px;
    height: 420px;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.65), transparent 68%);
    pointer-events: none;
}

.mg-page-hero::after {
    content: "";
    position: absolute;
    inset: auto -5% -30% auto;
    width: 360px;
    height: 360px;
    background: radial-gradient(circle, rgba(251, 146, 60, 0.35), transparent 70%);
    pointer-events: none;
}

.mg-page-hero-inner {
    position: relative;
    z-index: 1;
}

.mg-page-hero-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.55rem 1rem;
    border-radius: 999px;
    font-size: var(--hero-heading-sm);
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: #9a3412;
    background: rgba(255, 255, 255, 0.55);
    border: 1px solid rgba(234, 88, 12, 0.2);
    margin-bottom: 1rem;
}

.mg-page-hero-eyebrow i {
    font-size: 1.35rem;
}

.mg-page-hero-title {
    font-size: clamp(2.25rem, 4.5vw, 3.5rem);
    font-weight: 800;
    letter-spacing: -0.03em;
    line-height: 1.15;
    color: var(--hero-ink);
    margin-bottom: 1rem;
    max-width: 14ch;
}

.mg-page-hero-title--wide {
    max-width: none;
}

.mg-page-hero-title em {
    font-style: normal;
    background: linear-gradient(120deg, #c2410c, #7c3aed);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.mg-page-hero-lead {
    font-size: var(--hero-text);
    line-height: 1.6;
    color: var(--hero-muted);
    max-width: 40rem;
    margin-bottom: 1.5rem;
}

.mg-page-hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
}

.mg-page-hero-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.6rem;
    padding: 0.9rem 1.45rem;
    border-radius: 14px;
    font-size: var(--hero-text);
    font-weight: 700;
    text-decoration: none;
    border: 1px solid rgba(28, 25, 23, 0.12);
    background: rgba(255, 255, 255, 0.75);
    color: var(--hero-ink);
    backdrop-filter: blur(6px);
    cursor: pointer;
    transition: transform 0.18s ease, box-shadow 0.18s ease, filter 0.18s ease, background 0.18s ease;
}

.mg-page-hero-btn i {
    font-size: 1.45rem;
}

.mg-page-hero-btn:hover {
    transform: translateY(-2px);
    color: var(--hero-ink);
    box-shadow: 0 6px 18px rgba(28, 25, 23, 0.08);
}

.mg-page-hero-btn--primary {
    background: linear-gradient(135deg, #ea580c, #db2777);
    color: #fff;
    border: none;
    box-shadow: 0 10px 28px rgba(219, 39, 119, 0.28);
}

.mg-page-hero-btn--primary:hover {
    color: #fff;
    filter: brightness(1.05);
}

.mg-page-hero-btn--secondary {
    background: rgba(255, 255, 255, 0.75);
    color: var(--hero-ink);
}

.mg-page-hero-btn--white {
    background: #fff;
    color: #4338ca;
    border-color: #fff;
    box-shadow: 0 8px 22px rgba(15, 23, 42, 0.14);
}

.mg-page-hero-btn--white:hover {
    color: #3730a3;
}

.mg-page-hero-stats {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.85rem;
    max-width: 28rem;
    margin-left: auto;
}

.mg-page-hero-stat {
    padding: 1.15rem 1.2rem;
    border-radius: 16px;
    background: rgba(255, 255, 255, 0.72);
    border: 1px solid rgba(255, 255, 255, 0.9);
    box-shadow: 0 8px 24px rgba(124, 58, 237, 0.08);
}

.mg-page-hero-stat strong {
    display: block;
    font-size: 2rem;
    font-weight: 800;
    color: #7c2d12;
    line-height: 1.1;
}

.mg-page-hero-stat span {
    display: block;
    font-size: var(--hero-text);
    color: var(--hero-muted);
    margin-top: 0.25rem;
    line-height: 1.45;
}

.mg-page-hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.65rem 1.1rem;
    border-radius: 999px;
    font-size: var(--hero-heading-sm);
    font-weight: 700;
    color: #7c2d12;
    background: rgba(255, 255, 255, 0.72);
    border: 1px solid rgba(255, 255, 255, 0.9);
    box-shadow: 0 8px 24px rgba(124, 58, 237, 0.08);
    white-space: nowrap;
}

.mg-page-hero-badge i {
    font-size: 1.35rem;
}

@media (max-width: 991px) {
    .mg-page-hero-stats {
        max-width: none;
        margin-left: 0;
    }
}

@media (max-width: 575px) {
    .mg-page-hero {
        padding: 2.5rem 0 3rem;
    }

    .mg-page-hero-title:not(.mg-page-hero-title--wide) {
        max-width: none;
    }
}
