/**
 * EMA Button — front-end styles
 *
 * Seven style presets, all using the .ema-btn base + .ema-btn--{preset} modifier.
 * Defaults reproduce the original look from the EMA Catering home page.
 * Elementor controls override colors / typography / padding / radius / shadow.
 */

/* =====================================================
 * Wrap (controls alignment of the button within its column)
 * ===================================================== */
.ema-btn-wrap{
    display: flex;
    flex-wrap: wrap;
    width: 100%;
}

/* =====================================================
 * Base button (shared across every preset)
 * ===================================================== */
.ema-btn{
    --ema-shadow-color: #12110F;
    --ema-shadow-x: 0px;
    --ema-shadow-y: 0px;
    --ema-shadow-hx: 0px;
    --ema-shadow-hy: 0px;

    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    font-family: 'Oswald', 'Arial Narrow', sans-serif;
    font-weight: 700;
    text-decoration: none;
    line-height: 1.1;
    border: 0 solid transparent;
    background: transparent;
    cursor: pointer;
    transition: background-color .25s ease, color .25s ease,
                border-color .25s ease, transform .25s ease, box-shadow .25s ease;
    position: relative;
}
.ema-btn:focus-visible{
    outline: 2px solid #C2A862;
    outline-offset: 3px;
}
.ema-btn--full{
    width: 100%;
    justify-content: center;
}

/* Icon */
.ema-btn-icon{
    display: inline-flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
    transition: transform .25s ease;
}
.ema-btn-icon svg{
    width: 1em;
    height: 1em;
    fill: currentColor;
    display: block;
}
.ema-btn:hover .ema-btn-arrow{
    transform: translateX(4px);
}

/* =====================================================
 * Size presets
 * ===================================================== */
.ema-btn--size-sm{ padding: 9px 14px;  font-size: 12px; letter-spacing: .04em; }
.ema-btn--size-md{ padding: 11px 18px; font-size: 13px; letter-spacing: .04em; }
.ema-btn--size-lg{ padding: 14px 22px; font-size: 14px; letter-spacing: .04em; }
.ema-btn--size-xl{ padding: 18px 28px; font-size: 14px; letter-spacing: .04em; }

/* =====================================================
 * 1 · Solid Pill  (matches .btn-quote / .btn-primary)
 * ===================================================== */
.ema-btn--solid-pill{
    background-color: #A01428;
    color: #F5EFD9;
    border-radius: 30px;
    gap: 8px;
    text-transform: uppercase;
    border-width: 2px;
    border-color: transparent;
    box-shadow: 3px 3px 0 #12110F !important;
}
.ema-btn-wrap .ema-btn--solid-pill:hover,
.ema-btn-wrap .ema-btn--solid-pill:focus,
.ema-btn-wrap .ema-btn--solid-pill:active{
    background-color: #7E0F1F;
    color: #F5EFD9;
    transform: translate(-2px, -2px);
    box-shadow: 5px 5px 0 #12110F !important;
}

/* =====================================================
 * 2 · Ghost Pill  (matches .btn-ghost)
 * ===================================================== */
.ema-btn--ghost-pill{
    background-color: transparent;
    color: #F5EFD9;
    border-radius: 50px;
    text-transform: uppercase;
    border-width: 2px;
    border-color: #F5EFD9;
}
.ema-btn--ghost-pill:hover{
    background-color: #F5EFD9;
    color: #12110F;
}

/* =====================================================
 * 3 · Dark Pill + Pulse Dot  (matches .btn-hire)
 * ===================================================== */
.ema-btn--dark-pill-dot{
    background-color: #12110F;
    color: #F5EFD9;
    border-radius: 50px;
    text-transform: uppercase;
    border-width: 2px;
    border-color: #12110F;
}
.ema-btn--dark-pill-dot:hover{
    background-color: #F5EFD9;
    color: #12110F;
}
.ema-btn-dot{
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: #C2A862;
    box-shadow: 0 0 0 0 rgba(194, 168, 98, .7);
    animation: ema-hire-pulse 1.6s ease-in-out infinite;
    flex-shrink: 0;
}
@keyframes ema-hire-pulse{
    0%, 100% { box-shadow: 0 0 0 0   rgba(194, 168, 98, .7); }
    50%      { box-shadow: 0 0 0 6px rgba(194, 168, 98, 0); }
}

/* =====================================================
 * 4 · Solid Block  (matches .spotlight-cta — sharp corners, gold)
 * ===================================================== */
.ema-btn--solid-block{
    background-color: #C2A862;
    color: #12110F;
    border-radius: 0;
    text-transform: uppercase;
    border-width: 2px;
    border-color: #C2A862;
    letter-spacing: .2em;
    --ema-shadow-x: 0px;
    --ema-shadow-y: 0px;
    --ema-shadow-hx: 0px;
    --ema-shadow-hy: 0px;
    box-shadow: var(--ema-shadow-x) var(--ema-shadow-y) 0 var(--ema-shadow-color);
}
.ema-btn--solid-block:hover{
    background-color: #F5EFD9;
    border-color: #F5EFD9;
    transform: translateY(-2px);
}

/* =====================================================
 * 5 · Outline Block  (matches .arr-btn — sharp, 2.5px border, transparent)
 * ===================================================== */
.ema-btn--outline-block{
    background-color: transparent;
    color: #12110F;
    border-radius: 0;
    text-transform: uppercase;
    border-width: 2.5px;
    border-color: currentColor;
    letter-spacing: .22em;
}
.ema-btn--outline-block:hover{
    background-color: #12110F;
    color: #F5EFD9;
    gap: 22px;
}
.ema-btn--outline-block:hover .ema-btn-icon{
    transform: translateX(6px);
}

/* =====================================================
 * 6 · Underline Italic  (matches .events-cta a)
 * ===================================================== */
.ema-btn--underline-italic{
    background-color: transparent;
    color: #12110F;
    font-family: 'Oswald', 'Arial Narrow', sans-serif;
    font-weight: 600;
    font-style: italic;
    font-size: 24px;
    letter-spacing: 0;
    text-transform: none;
    border-bottom: 2px solid #12110F;
    padding: 0 0 6px 0;
    border-radius: 0;
    gap: 14px;
    line-height: 1.2;
}
.ema-btn--underline-italic:hover{
    color: #A01428;
    border-bottom-color: #A01428;
    gap: 24px;
}
.ema-btn--underline-italic:hover .ema-btn-icon{
    transform: translateX(8px);
}

/* =====================================================
 * 7 · Border-Bottom Link  (matches .stamp-link — small caps, letter-spaced)
 * ===================================================== */
.ema-btn--border-link{
    background-color: transparent;
    color: currentColor;
    font-size: 12px;
    font-weight: 800;
    letter-spacing: .14em;
    text-transform: uppercase;
    border-bottom: 2px solid currentColor;
    padding: 0 0 4px 0;
    border-radius: 0;
    gap: 10px;
}
.ema-btn--border-link:hover{
    gap: 18px;
}
.ema-btn--border-link:hover .ema-btn-icon{
    transform: translateX(6px);
}

/* =====================================================
 * Reduced motion
 * ===================================================== */
@media (prefers-reduced-motion: reduce){
    .ema-btn, .ema-btn-icon, .ema-btn-dot{
        transition: none !important;
        animation: none !important;
    }
    .ema-btn:hover{ transform: none !important; }
}
