/**
 * EMA Service Tiles — front-end styles.
 * Matches .svc-grid-section from services.html.
 */
.ema-svc-grid-section{
    padding: 120px 32px;
    background: #F5EFD9;
    position: relative;
}
.ema-svc-grid-head{
    max-width: 1280px;
    margin: 0 auto 64px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 48px;
    align-items: end;
}
.ema-svc-grid-head .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: #A01428;
    margin-bottom: 20px;
}
.ema-svc-grid-head .eyebrow::before{
    content: "";
    width: 32px;
    height: 2px;
    background: #A01428;
}
.ema-svc-grid-head h2{
    font-family: 'Oswald', 'Arial Narrow', sans-serif;
    font-weight: 700;
    font-size: clamp(44px, 5vw, 80px);
    line-height: .95;
    letter-spacing: -0.025em;
    text-transform: uppercase;
    color: #12110F;
    margin: 0;
}
.ema-svc-grid-head h2 em{
    font-style: normal;
    color: #A01428;
}
.ema-svc-grid-head .intro{
    font-family: 'Oswald', 'Arial Narrow', sans-serif;
    font-size: 16.5px;
    line-height: 1.65;
    color: rgba(18,17,15,.7);
    padding-bottom: 12px;
    margin: 0;
}

.ema-svc-tiles{
    max-width: 1280px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 28px;
}
.ema-svc-tile{
    position: relative;
    aspect-ratio: 5/4;
    overflow: hidden;
    cursor: pointer;
    border: 3px solid #12110F;
    transition: transform .4s cubic-bezier(.6,.05,.2,.95);
    display: block;
    text-decoration: none;
    color: inherit;
}
.ema-svc-tile:nth-child(odd){ transform: rotate(-0.6deg); }
.ema-svc-tile:nth-child(even){ transform: rotate(0.6deg); }
.ema-svc-tile:hover{
    transform: rotate(0) translateY(-6px);
}
.ema-svc-tile-img{
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
    transition: transform .8s cubic-bezier(.4,0,.2,1);
}
.ema-svc-tile:hover .ema-svc-tile-img{
    transform: scale(1.06);
}
.ema-svc-tile::after{
    content: "";
    position: absolute;
    inset: 0;
    z-index: 1;
    background: linear-gradient(180deg, rgba(18,17,15,0) 0%, rgba(18,17,15,.2) 45%, rgba(18,17,15,.92) 100%);
}
.ema-svc-tile-content{
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 2;
    padding: 32px 30px 30px;
    color: #F5EFD9;
}
.ema-svc-tile-num{
    display: inline-block;
    font-family: 'Oswald', 'Arial Narrow', sans-serif;
    font-weight: 700;
    font-size: 14px;
    letter-spacing: .18em;
    text-transform: uppercase;
    color: #C2A862;
    margin-bottom: 10px;
}
.ema-svc-tile h3{
    font-family: 'Oswald', 'Arial Narrow', sans-serif;
    font-weight: 700;
    font-size: clamp(28px, 2.8vw, 40px);
    line-height: .98;
    letter-spacing: -0.02em;
    text-transform: uppercase;
    color: #F5EFD9;
    margin: 0 0 8px;
}
.ema-svc-tile h3 em{
    font-style: normal;
    color: #C2A862;
}
.ema-svc-tile p{
    /* Explicit font-family per request — source HTML has no font-family on this <p>. */
    font-family: 'Oswald', 'Arial Narrow', sans-serif;
    font-size: 13.5px;
    line-height: 1.55;
    color: rgba(245,239,217,.78);
    max-width: 440px;
    margin: 0;
}
.ema-svc-tile .arr{
    position: absolute;
    top: 24px;
    right: 24px;
    z-index: 3;
    width: 44px;
    height: 44px;
    background: #F5EFD9;
    border: 2px solid #12110F;
    color: #12110F;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    transition: background .25s, color .25s, transform .25s;
}
.ema-svc-tile:hover .arr{
    background: #A01428;
    color: #F5EFD9;
    border-color: #A01428;
    transform: rotate(-45deg);
}

@media (max-width: 1100px){
    .ema-svc-grid-head{ grid-template-columns: 1fr; gap: 24px; }
    .ema-svc-tiles{ grid-template-columns: 1fr; gap: 20px; }
}
@media (max-width: 780px){
    .ema-svc-grid-section{ padding: 64px 16px; }
    .ema-svc-grid-head h2{ font-size: 42px; }
    .ema-svc-tile{ aspect-ratio: 4/3; }
    .ema-svc-tile:nth-child(odd),
    .ema-svc-tile:nth-child(even){ transform: rotate(0); }
    .ema-svc-tile:hover{ transform: translateY(-3px); }
    .ema-svc-tile-content{ padding: 24px 22px 22px; }
    .ema-svc-tile h3{ font-size: 26px; }
    .ema-svc-tile p{ font-size: 13px; }
    .ema-svc-tile .arr{ top: 16px; right: 16px; width: 36px; height: 36px; font-size: 14px; }
}
