/**
 * EMA Services Grid — front-end styles.
 * Matches .services / .service-grid from the EMA Catering home page.
 */

.ema-svc{
    background: #F5EFD9;
    padding: 140px 32px 120px;
    position: relative;
}

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

/* ===== Header ===== */
.ema-svc-head{
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    gap: 80px;
    align-items: end;
    margin-bottom: 70px;
}

.ema-svc-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: 24px;
}
.ema-svc-eyebrow::before{
    content: "";
    width: 32px;
    height: 2px;
    background: #A01428;
    flex-shrink: 0;
}

.ema-svc-h{
    font-family: 'Oswald', 'Arial Narrow', sans-serif;
    font-weight: 800;
    font-size: clamp(48px, 6.5vw, 100px);
    line-height: .95;
    letter-spacing: -0.04em;
    color: #12110F;
    margin: 0;
}
.ema-svc-h .l1{ color: #12110F; }
.ema-svc-h .l2{
    font-style: italic;
    font-weight: 400;
    color: #A01428;
}

.ema-svc-intro{
    font-family: 'Oswald', 'Arial Narrow', sans-serif;
    font-style: italic;
    font-weight: 400;
    font-size: 21px;
    line-height: 1.45;
    color: #12110F;
    opacity: .85;
    max-width: 440px;
    margin: 0;
}

/* ===== Grid ===== */
.ema-svc-grid{
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

/* ===== Card ===== */
.ema-svc-card{
    position: relative;
    display: block;
    aspect-ratio: 5/6;
    border-radius: 18px;
    overflow: hidden;
    cursor: pointer;
    transition: transform .4s cubic-bezier(.6,.05,.2,.95);
    border: 3px solid #12110F;
    background: #12110F;
    text-decoration: none;
    color: inherit;
}
.ema-svc--tilt .ema-svc-card--odd { transform: rotate(-1.2deg); }
.ema-svc--tilt .ema-svc-card--even{ transform: rotate(1.2deg);  }
.ema-svc-card:hover{
    transform: rotate(0) scale(1.02);
    z-index: 2;
}

/* Image layer */
.ema-svc-card-img{
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    transition: transform .8s;
}
.ema-svc-card:hover .ema-svc-card-img{ transform: scale(1.06); }

/* Gradient overlay */
.ema-svc-card::before{
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg,
        rgba(18,17,15,0.05) 0%,
        rgba(18,17,15,0.4) 50%,
        rgba(18,17,15,0.92) 100%);
    z-index: 1;
}

/* Content overlay */
.ema-svc-card-content{
    position: absolute;
    inset: 0;
    z-index: 2;
    padding: 28px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    color: #F5EFD9;
}

/* Tag pill */
.ema-svc-tag{
    display: inline-flex;
    align-self: flex-start;
    padding: 6px 12px;
    border-radius: 30px;
    font-family: 'Oswald', 'Arial Narrow', sans-serif;
    font-size: 11px;
    font-weight: 800;
    letter-spacing: .12em;
    text-transform: uppercase;
    transform: rotate(-2deg);
    line-height: 1.2;
}
.ema-svc-tag.tag-red   { background: #A01428; color: #F5EFD9; }
.ema-svc-tag.tag-gold  { background: #C2A862; color: #12110F; }
.ema-svc-tag.tag-green { background: #1F4D3F; color: #F5EFD9; }
.ema-svc-tag.tag-cream { background: #F5EFD9; color: #12110F; }

/* Bottom block */
.ema-svc-card-bottom{
    display: flex;
    flex-direction: column;
    gap: 14px;
}
.ema-svc-card h3{
    font-family: 'Oswald', 'Arial Narrow', sans-serif;
    font-weight: 800;
    font-size: clamp(24px, 2.6vw, 36px);
    line-height: .98;
    letter-spacing: -0.025em;
    color: #F5EFD9;
    margin: 0;
    word-break: break-word;
    hyphens: auto;
}
.ema-svc-card h3 em{
    font-style: italic;
    font-weight: 400;
    color: #C2A862;
}
.ema-svc-desc{
    font-size: 13.5px;
    line-height: 1.5;
    color: #F5EFD9;
    opacity: .92;
    margin: 0;
}

/* ===== Responsive ===== */
@media (max-width: 1100px){
    .ema-svc{ padding: 100px 24px 80px; }
    .ema-svc-head{
        grid-template-columns: 1fr;
        gap: 24px;
        margin-bottom: 50px;
    }
    .ema-svc-grid{ grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 780px){
    .ema-svc{ padding: 60px 16px 50px; }
    .ema-svc-head{ gap: 18px; margin-bottom: 36px; }
    .ema-svc-intro{ font-size: 16px; }
    .ema-svc-grid{ grid-template-columns: 1fr; gap: 18px; }
    .ema-svc--tilt .ema-svc-card--odd,
    .ema-svc--tilt .ema-svc-card--even{ transform: rotate(0); }
    .ema-svc-card:hover{ transform: scale(1.01); }
    .ema-svc-card-content{ padding: 22px; }
    .ema-svc-card h3{ font-size: 30px; }
    .ema-svc-desc{ font-size: 13px; }
}

@media (prefers-reduced-motion: reduce){
    .ema-svc-card,
    .ema-svc-card-img{
        transition: none !important;
    }
}
