/**
 * EMA Closing Band v1.1.0 — front-end styles.
 *
 * Backwards compatible with v1.0.0. New classes:
 *   .deco-stars   — original ★ ★ ★ decoration (was .has-deco)
 *   .deco-glow    — soft radial-gradient glow (partner.html intro-call style)
 *   .layout-inline_split — heading em renders as its own block line
 *   .ema-closing-eyebrow  — small uppercase line above the heading
 *   .ema-closing-note     — small line below the buttons
 */
.ema-closing{
    background: #A01428;
    color: #F5EFD9;
    padding: 120px 32px;
    position: relative;
    overflow: hidden;
    text-align: center;
}

/* Decoration — stars (original) */
.ema-closing.has-deco.deco-stars::before{
    content: "★ ★ ★";
    position: absolute;
    top: 24px;
    left: 50%;
    transform: translateX(-50%);
    font-size: 18px;
    letter-spacing: .5em;
    color: rgba(245,239,217,.5);
    pointer-events: none;
}

/* Decoration — soft radial glow (partner intro-call) */
.ema-closing.has-deco.deco-glow::before{
    content: "";
    position: absolute;
    top: -100px; right: -100px;
    width: 520px; height: 520px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(245,239,217,.08) 0%, transparent 70%);
    pointer-events: none;
}

/* Backwards compat: instances saved with v1.0.0 carry .has-deco
   but no .deco-* class. Render stars for them too. */
.ema-closing.has-deco:not(.deco-glow):not(.deco-stars)::before{
    content: "★ ★ ★";
    position: absolute;
    top: 24px;
    left: 50%;
    transform: translateX(-50%);
    font-size: 18px;
    letter-spacing: .5em;
    color: rgba(245,239,217,.5);
    pointer-events: none;
}

/* Eyebrow */
.ema-closing-eyebrow{
    display: inline-flex;
    align-items: center;
    gap: 14px;
    font-family: 'Oswald', 'Arial Narrow', sans-serif;
    font-size: 13px;
    font-weight: 600;
    letter-spacing: .28em;
    text-transform: uppercase;
    color: rgba(245,239,217,.7);
    margin-bottom: 28px;
    position: relative;
    z-index: 1;
}
.ema-closing-eyebrow::before,
.ema-closing-eyebrow::after{
    content: "";
    width: 32px;
    height: 2px;
    background: rgba(245,239,217,.7);
    flex: 0 0 32px;
}

/* Heading */
.ema-closing h2{
    font-family: 'Oswald', 'Arial Narrow', sans-serif;
    font-weight: 800;
    font-size: clamp(48px, 7vw, 110px);
    line-height: .95;
    letter-spacing: -0.04em;
    color: #F5EFD9;
    max-width: 1100px;
    margin: 0 auto 24px;
    position: relative;
    z-index: 1;
}
.ema-closing h2 em{
    font-style: italic;
    font-weight: 400;
    color: #C2A862;
}

/* Inline-split layout: em renders as its own line (display:block) */
.ema-closing.layout-inline_split h2 em{
    display: block;
    font-style: normal;
}

/* Subtitle */
.ema-closing-sub{
    font-family: 'Oswald', 'Arial Narrow', sans-serif;
    font-style: italic;
    font-weight: 400;
    font-size: 24px;
    line-height: 1.4;
    color: #F5EFD9;
    opacity: .92;
    max-width: 640px;
    margin: 0 auto 48px;
    position: relative;
    z-index: 1;
}

/* Buttons */
.ema-closing-ctas{
    display: flex;
    gap: 18px;
    justify-content: center;
    flex-wrap: wrap;
    position: relative;
    z-index: 1;
}
.ema-closing .ema-btn{
    display: inline-flex;
    align-items: center;
    gap: 12px;
    padding: 18px 28px;
    border-radius: 50px;
    font-family: 'Oswald', 'Arial Narrow', sans-serif;
    font-size: 14px;
    font-weight: 800;
    letter-spacing: .04em;
    text-transform: uppercase;
    transition: all .25s cubic-bezier(.4,0,.2,1);
    border: 2px solid transparent;
    text-decoration: none;
}
.ema-closing .ema-btn-primary{
    background: var(--cream);
    color: var(--soot);
    border: 2px solid var(--cream);
    box-shadow: 4px 4px 0 var(--soot);
}
.ema-closing .ema-btn-primary:hover{
    background: transparent;
    color: var(--cream);
    box-shadow: 6px 6px 0 var(--soot);
    transform: translate(-2px, -2px);
}
.ema-closing .ema-btn-ghost{
    background: transparent;
    color: #F5EFD9;
    border-color: #F5EFD9;
}
.ema-closing .ema-btn-ghost:hover{
    background: #F5EFD9;
    color: #12110F;
}
.ema-closing .ema-btn .arr{
    display: inline-block;
    transition: transform .25s;
}
.ema-closing .ema-btn:hover .arr{
    transform: translateX(4px);
}

/* Note below buttons */
.ema-closing-note{
    margin-top: 24px;
    font-family: 'Oswald', 'Arial Narrow', sans-serif;
    font-size: 13px;
    letter-spacing: .06em;
    color: rgba(245,239,217,.7);
    position: relative;
    z-index: 1;
}

/* Mobile */
@media (max-width: 780px){
    .ema-closing{ padding: 60px 16px; }
    .ema-closing-eyebrow{ font-size: 11px; margin-bottom: 20px; }
    .ema-closing-eyebrow::before,
    .ema-closing-eyebrow::after{ width: 20px; flex-basis: 20px; }
    .ema-closing h2{ font-size: 42px;}
    .ema-closing-sub{ font-size: 15.5px; margin-bottom: 28px; }
    .ema-closing-ctas{ gap: 10px; }
    .ema-closing-ctas .ema-btn{ padding: 14px 22px; font-size: 11px; }
    .ema-closing.has-deco.deco-glow::before{ width: 320px; height: 320px; top: -80px; right: -80px; }
}
