﻿:root {
    --red: #d61f2c;
    --red-dark: #b3141f;
    --ink: #1a1a1a;
    --gray-text: #6b6b6b;
    --bg-soft: #f6f6f6;
    --border: #e7e5e2;
    --white: #ffffff;
    --num-gray: #e2e0dc;
}

.nem-terms * {
    box-sizing: border-box;
    animation-fill-mode: both;
}

@keyframes nem-fadeUp {
    from {
        opacity: 0;
        transform: translateY(24px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes nem-pop {
    from {
        opacity: 0;
        transform: scale(.9);
    }

    to {
        opacity: 1;
        transform: scale(1);
    }
}

@keyframes nem-growLine {
    from {
        transform: scaleX(0);
    }

    to {
        transform: scaleX(1);
    }
}

@media (prefers-reduced-motion: reduce) {
    .nem-terms * {
       
        transition: none !important;
    }
}

.nem-terms {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    color: var(--ink);
    background: var(--white);
    max-width: 1600px;
    min-width: 300px;
    margin: 0 auto;
    padding: clamp(16px,4vw,40px);
    overflow-x: hidden;
}

/* ---------- HERO ---------- */
.nem-terms-hero {
    display: grid;
    grid-template-columns: 1.05fr 1fr;
    gap: clamp(20px,4vw,48px);
    align-items: center;
    padding: clamp(20px,4vw,32px) 0 clamp(32px,5vw,56px);
}

.nem-eyebrow {
    display: inline-block;
    color: var(--red);
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    margin-bottom: 10px;
    animation: nem-fadeUp .6s ease-out;
}

    .nem-eyebrow::after {
        content: "";
        display: block;
        width: 38px;
        height: 3px;
        background: var(--red);
        margin-top: 8px;
        border-radius: 2px;
        transform-origin: left;
        animation: nem-growLine .7s .3s ease-out both;
    }

.nem-terms-hero h1 {
    font-size: clamp(26px,4vw,42px);
    line-height: 1.15;
    font-weight: 800;
    margin: 0 0 16px;
    letter-spacing: -0.5px;
    animation: nem-fadeUp .7s .1s ease-out both;
}

    .nem-terms-hero h1 span {
        color: var(--red);
    }

.nem-terms-hero p {
    color: var(--gray-text);
    font-size: clamp(14px,1.4vw,16px);
    line-height: 1.7;
    max-width: 48ch;
    margin: 0 0 26px;
    animation: nem-fadeUp .7s .2s ease-out both;
}

.nem-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: var(--red);
    color: var(--white);
    border: none;
    text-decoration: none;
    padding: 14px 26px;
    font-size: 14px;
    font-weight: 700;
    border-radius: 6px;
    cursor: pointer;
    transition: transform .25s ease, box-shadow .25s ease, background .25s ease;
    box-shadow: 0 6px 16px rgba(214,31,44,.25);
    animation: nem-fadeUp .7s .3s ease-out both;
}

    .nem-btn:hover {
        background: var(--red-dark);
        transform: translateY(-3px);
        box-shadow: 0 10px 22px rgba(214,31,44,.35);
    }

    .nem-btn svg {
        transition: transform .25s ease;
    }

    .nem-btn:hover svg {
        transform: translateX(4px);
    }

.nem-terms-media {
    width: 100%;
    animation: nem-pop .7s .15s ease-out both;
}
    /* Hero image: only height/width controlled here — src added by user */
    .nem-terms-media img {
        display: block;
        width: 100%;
        height: auto;
        aspect-ratio: 16/11;
        object-fit: cover;
        border-radius: 12px;
    }

/* ---------- INTRO ---------- */
.nem-terms-intro {
    margin-bottom: clamp(20px,3vw,28px);
}

    .nem-terms-intro h2 {
        font-size: clamp(19px,2.4vw,24px);
        font-weight: 800;
        margin: 0 0 12px;
        position: relative;
        padding-bottom: 12px;
    }

        .nem-terms-intro h2::after {
            content: "";
            position: absolute;
            left: 0;
            bottom: 0;
            width: 42px;
            height: 3px;
            background: var(--red);
            border-radius: 2px;
        }

/* ---------- TERMS GRID ---------- */
.nem-terms-grid {
    display: grid;
    grid-template-columns: repeat(3,1fr);
    gap: clamp(16px,2.5vw,22px);
    margin-bottom: clamp(16px,2.5vw,22px);
}

.nem-term-card {
    position: relative;
    display: flex;
    gap: 14px;
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 22px 20px;
    background: var(--white);
    overflow: hidden;
    transition: transform .3s ease, box-shadow .3s ease, border-color .3s ease;
    opacity: 0;
    animation: nem-fadeUp .6s ease-out forwards;
}

    .nem-term-card:nth-child(1) {
        animation-delay: .03s;
    }

    .nem-term-card:nth-child(2) {
        animation-delay: .08s;
    }

    .nem-term-card:nth-child(3) {
        animation-delay: .13s;
    }

    .nem-term-card:nth-child(4) {
        animation-delay: .18s;
    }

    .nem-term-card:nth-child(5) {
        animation-delay: .23s;
    }

    .nem-term-card:nth-child(6) {
        animation-delay: .28s;
    }

    .nem-term-card:nth-child(7) {
        animation-delay: .33s;
    }

    .nem-term-card:nth-child(8) {
        animation-delay: .38s;
    }

    .nem-term-card:nth-child(9) {
        animation-delay: .43s;
    }

    .nem-term-card:hover {
        transform: translateY(-6px);
        box-shadow: 0 16px 30px rgba(0,0,0,.08);
        border-color: transparent;
    }

.nem-term-num {
    position: absolute;
    top: 16px;
    right: 18px;
    font-size: 22px;
    font-weight: 800;
    color: var(--num-gray);
    line-height: 1;
    transition: color .3s ease;
}

.nem-term-card:hover .nem-term-num {
    color: #d8d5d0;
}

.nem-icon-circle {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: #fbe1e2;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    transition: transform .3s ease, background .3s ease;
}

    .nem-icon-circle svg {
        width: 19px;
        height: 19px;
        stroke: var(--red);
    }

.nem-term-card:hover .nem-icon-circle {
    transform: scale(1.08);
    background: var(--red);
}

    .nem-term-card:hover .nem-icon-circle svg {
        stroke: var(--white);
    }

.nem-term-card h3 {
    font-size: 14.5px;
    font-weight: 700;
    margin: 0 0 8px;
    padding-right: 30px;
}

.nem-term-card p {
    font-size: 13px;
    color: var(--gray-text);
    line-height: 1.65;
    margin: 0;
}

.nem-term-card a {
    color: var(--red);
    font-weight: 600;
    text-decoration: none;
}

    .nem-term-card a:hover {
        text-decoration: underline;
    }

.nem-term-card.nem-term-wide {
    grid-column: 1 / -1;
    align-items: center;
}

    .nem-term-card.nem-term-wide .nem-icon-circle {
        width: 52px;
        height: 52px;
    }

        .nem-term-card.nem-term-wide .nem-icon-circle svg {
            width: 22px;
            height: 22px;
        }

    .nem-term-card.nem-term-wide p {
        display: flex;
        align-items: center;
        gap: 8px;
        flex-wrap: wrap;
    }

/* ---------- NEWSLETTER STRIP ---------- */
.nem-newsletter {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    flex-wrap: wrap;
    background: linear-gradient(90deg, #fbeceb, #fdf5f4);
    border-radius: 14px;
    padding: clamp(20px,3vw,28px) clamp(20px,4vw,36px);
    margin-top: clamp(26px,4vw,36px);
}

.nem-newsletter-left {
    display: flex;
    align-items: center;
    gap: 16px;
    flex: 1 1 320px;
}

.nem-newsletter-icon {
    width: 52px;
    height: 52px;
    border-radius: 50%;
    background: var(--white);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    box-shadow: 0 6px 14px rgba(0,0,0,.06);
}

    .nem-newsletter-icon svg {
        width: 24px;
        height: 24px;
        stroke: var(--red);
    }

.nem-newsletter h3 {
    font-size: clamp(16px,2vw,19px);
    font-weight: 800;
    margin: 0 0 4px;
}

.nem-newsletter p {
    font-size: 12.5px;
    color: var(--gray-text);
    margin: 0;
}

.nem-newsletter-form {
    display: flex;
    align-items: stretch;
    gap: 10px;
    flex: 1 1 320px;
}

    .nem-newsletter-form input {
        flex: 1;
        border: 1px solid var(--border);
        border-radius: 8px;
        padding: 12px 14px;
        font-size: 13px;
        font-family: inherit;
        color: var(--ink);
        background: var(--white);
        transition: border-color .25s ease, box-shadow .25s ease;
    }

        .nem-newsletter-form input:focus {
            outline: none;
            border-color: var(--red);
            box-shadow: 0 0 0 3px rgba(214,31,44,.12);
        }

.nem-newsletter-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: var(--red);
    color: var(--white);
    border: none;
    padding: 12px 22px;
    font-size: 14px;
    font-weight: 700;
    border-radius: 6px;
    cursor: pointer;
    white-space: nowrap;
    transition: transform .25s ease, box-shadow .25s ease, background .25s ease;
}

    .nem-newsletter-btn:hover {
        background: var(--red-dark);
        transform: translateY(-3px);
        box-shadow: 0 10px 20px rgba(214,31,44,.3);
    }

    .nem-newsletter-btn svg {
        transition: transform .25s ease;
    }

    .nem-newsletter-btn:hover svg {
        transform: translateX(4px);
    }

.nem-newsletter-note {
    width: 100%;
    font-size: 11px;
    color: #9a9a9a;
    margin-top: 6px;
}

/* ---------- RESPONSIVE ---------- */
@media (max-width:1000px) {
    .nem-terms-hero {
        grid-template-columns: 1fr;
        text-align: left;
    }

    .nem-terms-grid {
        grid-template-columns: repeat(2,1fr);
    }

    .nem-term-card.nem-term-wide {
        grid-column: 1 / -1;
    }
}

@media (max-width:560px) {
    .nem-terms-grid {
        grid-template-columns: 1fr;
    }

    .nem-term-card {
        flex-direction: column;
    }

        .nem-term-card.nem-term-wide {
            flex-direction: row;
        }

    .nem-term-num {
        position: static;
        margin-left: auto;
    }

    .nem-newsletter {
        flex-direction: column;
        align-items: flex-start;
    }

    .nem-newsletter-form {
        width: 100%;
    }
}

@media (max-width:340px) {
    .nem-terms {
        padding: 12px;
    }

    .nem-terms-hero h1 {
        font-size: 22px;
    }
}
