/**
 * EMA Numbers Grid — front-end styles.
 * Matches .numbers from the EMA Catering home page.
 */

.ema-numbers{
    background: #EDE5C5;
    padding: 140px 32px;
    position: relative;
    overflow: hidden;
}

.ema-numbers-inner{
    max-width: 1440px;
    margin: 0 auto;
}

.ema-numbers-eyebrow{
    display: inline-flex;
    align-items: center;
    gap: 12px;
    font-family: 'Oswald', 'Arial Narrow', sans-serif;
    font-weight: 800;
    font-size: 12px;
    letter-spacing: .22em;
    text-transform: uppercase;
    color: #A01428;
    margin-bottom: 40px;
}
.ema-numbers-eyebrow::before{
    content: "";
    width: 32px;
    height: 2px;
    background: #A01428;
    flex-shrink: 0;
}

/* ===== Grid ===== */
.ema-numbers-grid{
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 0;
    border-top: 2px solid #12110F;
    border-left: 2px solid #12110F;
}

/* ===== Cell ===== */
.ema-nm{
    border-right: 2px solid #12110F;
    border-bottom: 2px solid #12110F;
    padding: 48px 36px;
    position: relative;
    overflow: hidden;
    transition: transform .25s cubic-bezier(.6,.05,.2,.95), box-shadow .25s;
}
.ema-nm:hover{
    z-index: 2;
    transform: scale(1.02);
    box-shadow: 0 0 0 3px #12110F inset;
}

/* Color schemes */
.ema-nm--cream{ background: #F5EFD9; color: #12110F; }
.ema-nm--red  { background: #A01428; color: #F5EFD9; }
.ema-nm--gold { background: #C2A862; color: #12110F; }
.ema-nm--green{ background: #1F4D3F; color: #F5EFD9; }
.ema-nm--dark { background: #12110F; color: #F5EFD9; }

/* Value */
.ema-nm .v{
    font-family: 'Oswald', 'Arial Narrow', sans-serif;
    font-weight: 800;
    font-size: clamp(56px, 10vw, 168px);
    line-height: .9;
    letter-spacing: -0.05em;
    margin-bottom: 8px;
    display: block;
    color: inherit;
    display: flex;
}
.ema-nm .v em{
    font-style: italic;
    font-weight: 400;
    color: inherit;
}

/* Label */
.ema-nm .l{
    font-family: 'Oswald', 'Arial Narrow', sans-serif;
    font-weight: 700;
    font-size: 14px;
    letter-spacing: .04em;
    line-height: 1.3;
    max-width: 260px;
    color: inherit;
}

/* Scribble (top-right corner accent) */
.ema-nm .scribble{
    position: absolute;
    top: 24px;
    right: 24px;
    font-family: 'Oswald', 'Arial Narrow', sans-serif;
    font-weight: 500;
    font-size: 22px;
    transform: rotate(8deg);
    line-height: 1;
}
.ema-nm--cream .scribble{ color: #A01428; }
.ema-nm--red   .scribble{ color: #F5EFD9; opacity: .9; }
.ema-nm--gold  .scribble{ color: #12110F; }
.ema-nm--green .scribble{ color: #C2A862; }
.ema-nm--dark  .scribble{ color: #C2A862; }
.ema-numbers-grid .ema-nm:nth-child(5) span.scribble {
    color: #1F4D3F;
}
/* ===== Responsive ===== */
@media (max-width: 1100px){
    .ema-numbers{ padding: 90px 24px; }
    .ema-numbers-grid{ grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 780px){
    .ema-numbers{ padding: 60px 16px; }
    .ema-numbers-grid{ grid-template-columns: 1fr 1fr; }
    .ema-nm{ padding: 24px 18px; }
    .ema-nm .v{ font-size: 44px; letter-spacing: -0.04em; }
    .ema-nm .l{ font-size: 11px; line-height: 1.35; letter-spacing: .02em; }
    .ema-nm .scribble{ font-size: 15px; top: 14px; right: 14px; }
}

@media (prefers-reduced-motion: reduce){
    .ema-nm{ transition: none !important; }
    .ema-nm:hover{ transform: none !important; }
}
