﻿/* =====================================================================
   EMAIL MARKETING PAGE  -  /wwwroot/css/emailmarketing.css
   Works inside _Layout. Every class starts with "em-".
   Fixed navbar offset is read from --nav2-h and --nav-h of the layout.
   ===================================================================== */
.em-page {
    --em-blue: #2f5bff;
    --em-blue-d: #1d3fd1;
    --em-sky: #7fa2ff;
    --em-ink: #0a1230;
    --em-muted: #516089;
    --em-bg: #f6f8ff;
    --em-tint: #e8eeff;
    --em-pink: #ff6fa3;
    --em-green: #19c28a;
    --em-line: rgba(10,18,48,.12);
    --em-offset: calc(var(--nav2-h,42px) + var(--nav-h,100px));
    --em-head: 'Bricolage Grotesque',system-ui,sans-serif;
    --em-body: 'Instrument Sans',system-ui,sans-serif;
    font-family: var(--em-body);
    color: var(--em-ink);
    background: var(--em-bg);
    line-height: 1.65;
    overflow-x: hidden;
}

    .em-page *, .em-page *::before, .em-page *::after {
        box-sizing: border-box
    }

    .em-page img {
        max-width: 100%;
        display: block
    }

    .em-page a {
        text-decoration: none;
        color: inherit
    }

    .em-page h1, .em-page h2, .em-page h3 {
        font-family: var(--em-head);
        font-weight: 800;
        letter-spacing: -.03em;
        line-height: 1.1;
        margin: 0;
        color: var(--em-ink)
    }

    .em-page p {
        margin: 0
    }

    .em-page :focus-visible {
        outline: 2px solid var(--em-blue);
        outline-offset: 3px
    }

.em-wrap {
    width: min(1180px,100% - 2.5rem);
    margin-inline: auto
}

.em-section {
    padding: clamp(3.5rem,9vw,7rem) 0
}

.em-alt {
    background: var(--em-tint)
}

.em-white {
    background: #fff
}

.em-title {
    font-size: clamp(1.8rem,4.2vw,3.1rem);
    max-width: 19ch
}

.em-lead {
    color: var(--em-muted);
    font-size: clamp(1rem,1.4vw,1.15rem);
    max-width: 58ch;
    margin-top: 1rem
}

.em-head {
    margin-bottom: clamp(2rem,5vw,3.5rem)
}

.em-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: .95rem 1.7rem;
    border-radius: 8px;
    font-weight: 700;
    font-size: .95rem;
    border: 1px solid var(--em-blue);
    transition: transform .3s,background .3s,color .3s,box-shadow .3s;
    cursor: pointer
}

.em-btn-fill {
    background: var(--em-blue);
    color: #fff
}

    .em-btn-fill:hover {
        background: #fff;
        color: var(--em-blue);
        transform: translateY(-3px);
        box-shadow: 0 10px 24px rgba(47,91,255,.25)
    }

.em-btn-line {
    background: transparent;
    color: #fff;
    border-color: rgba(255,255,255,.55)
}

    .em-btn-line:hover {
        background: #fff;
        color: var(--em-ink);
        transform: translateY(-3px)
    }

/* ================= HERO ================= */
.em-hero {
    position: relative;
    isolation: isolate;
    overflow: hidden;
    color: #fff;
    padding: calc(var(--em-offset) + clamp(2.5rem,6vw,5rem)) 0 clamp(3.5rem,8vw,6rem);
    background: radial-gradient(800px 480px at 10% 90%,rgba(255,111,163,.16),transparent 60%),radial-gradient(900px 500px at 88% 15%,rgba(47,91,255,.55),transparent 60%),linear-gradient(160deg,#0a1230 0%,#12256e 100%);
}

.em-hero-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: clamp(2rem,5vw,4.5rem);
    align-items: center
}

.em-hero h1 {
    color: #fff;
    font-size: clamp(2.2rem,5.4vw,4.4rem);
    line-height: 1.05
}

    .em-hero h1 em {
        font-style: normal;
        color: var(--em-pink)
    }

.em-hero-p {
    margin-top: 1.4rem;
    max-width: 52ch;
    color: rgba(255,255,255,.82);
    font-size: clamp(1rem,1.5vw,1.15rem)
}

.em-hero-cta {
    display: flex;
    flex-wrap: wrap;
    gap: .9rem;
    margin-top: 2rem
}

.em-hero-points {
    display: flex;
    flex-wrap: wrap;
    gap: .6rem 1.6rem;
    margin: 2rem 0 0;
    padding: 0;
    list-style: none;
    color: rgba(255,255,255,.8);
    font-size: .92rem
}

    .em-hero-points li::before {
        content: "\2713";
        color: var(--em-pink);
        margin-right: .5rem;
        font-weight: 700
    }

/* email mockup */
.em-mail {
    position: relative;
    background: #fff;
    color: var(--em-ink);
    border-radius: 18px;
    box-shadow: 0 40px 80px rgba(0,0,0,.45)
}

.em-mail-bar {
    display: flex;
    align-items: center;
    gap: .7rem;
    padding: .9rem 1.1rem;
    border-bottom: 1px solid var(--em-line)
}

.em-avatar {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: linear-gradient(135deg,var(--em-blue),#0a1230);
    color: #fff;
    display: grid;
    place-items: center;
    font-weight: 800;
    font-size: .9rem;
    flex: none
}

.em-mail-bar b {
    display: block;
    font-size: .88rem;
    line-height: 1.2
}

.em-mail-bar small {
    display: block;
    font-size: .74rem;
    color: var(--em-muted)
}

.em-mail-bar span {
    margin-left: auto;
    font-size: .72rem;
    color: var(--em-muted);
    white-space: nowrap
}

.em-mail-body {
    padding: 1.1rem
}

.em-mail-img {
    border-radius: 12px;
    overflow: hidden;
    aspect-ratio: 16/8;
    background: linear-gradient(160deg,#9db7ff,#dbe5ff)
}

    .em-mail-img img {
        width: 100%;
        height: 100%;
        object-fit: cover
    }

.em-mail-body h3 {
    font-size: 1.2rem;
    margin: 1rem 0 .4rem
}

.em-mail-body p {
    font-size: .86rem;
    color: var(--em-muted)
}

.em-mail-btn {
    display: inline-block;
    margin-top: .9rem;
    padding: .6rem 1.2rem;
    border-radius: 7px;
    background: var(--em-blue);
    color: #fff;
    font-weight: 700;
    font-size: .82rem
}

.em-chip {
    position: absolute;
    display: flex;
    align-items: center;
    gap: .6rem;
    background: #fff;
    padding: .7rem 1rem;
    border-radius: 12px;
    box-shadow: 0 14px 34px rgba(10,18,48,.3);
    font-size: .82rem;
    font-weight: 600;
    animation: emFloat 5s ease-in-out infinite
}

    .em-chip b {
        display: block;
        font-family: var(--em-head);
        font-size: 1.1rem;
        line-height: 1;
        color: var(--em-green)
    }

    .em-chip.c1 {
        left: -7%;
        bottom: 12%
    }

    .em-chip.c2 {
        right: -4%;
        top: -7%;
        animation-delay: -2.2s
    }

        .em-chip.c2 b {
            color: var(--em-blue)
        }

@keyframes emFloat {
    0%,100% {
        transform: translateY(0)
    }

    50% {
        transform: translateY(-10px)
    }
}

/* ================= STRIP ================= */
.em-strip {
    background: #fff;
    border-bottom: 1px solid var(--em-line)
}

.em-strip-grid {
    display: grid;
    grid-template-columns: repeat(4,1fr)
}

.em-strip-item {
    padding: 1.6rem 1rem;
    text-align: center;
    border-right: 1px solid var(--em-line)
}

    .em-strip-item:last-child {
        border-right: 0
    }

    .em-strip-item b {
        display: block;
        font-family: var(--em-head);
        font-size: clamp(1.4rem,3vw,2.2rem);
        color: var(--em-blue);
        line-height: 1
    }

    .em-strip-item span {
        display: block;
        margin-top: .4rem;
        font-size: .9rem;
        color: var(--em-muted)
    }

/* ================= CARDS ================= */
.em-cards {
    display: grid;
    grid-template-columns: repeat(3,1fr);
    gap: 1.5rem
}

.em-card {
    background: #fff;
    border: 1px solid var(--em-line);
    border-radius: 16px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    transition: transform .4s,box-shadow .4s,border-color .4s
}

    .em-card:hover {
        transform: translateY(-6px);
        box-shadow: 0 22px 44px rgba(47,91,255,.16);
        border-color: rgba(47,91,255,.4)
    }

.em-card-img {
    height: 180px;
    overflow: hidden;
    background: linear-gradient(160deg,#9db7ff,#dbe5ff)
}

    .em-card-img img {
        width: 100%;
        height: 100%;
        object-fit: cover;
        transition: transform .7s
    }

.em-card:hover .em-card-img img {
    transform: scale(1.08)
}

.em-card-body {
    padding: 1.4rem;
    display: flex;
    flex-direction: column;
    gap: .6rem;
    flex: 1
}

.em-card h3 {
    font-size: 1.25rem
}

.em-card p {
    color: var(--em-muted);
    font-size: .95rem
}

.em-tags {
    display: flex;
    flex-wrap: wrap;
    gap: .45rem;
    margin-top: auto;
    padding-top: .6rem
}

    .em-tags span {
        font-size: .78rem;
        padding: .25rem .7rem;
        border-radius: 99px;
        background: var(--em-tint);
        color: var(--em-blue-d);
        font-weight: 600
    }

/* ================= SPLIT ================= */
.em-split {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: clamp(2rem,6vw,5rem);
    align-items: center
}

.em-photo {
    border-radius: 18px;
    overflow: hidden;
    aspect-ratio: 4/3.4;
    background: linear-gradient(160deg,#9db7ff,#dbe5ff);
    box-shadow: 0 30px 60px rgba(10,18,48,.18)
}

    .em-photo img {
        width: 100%;
        height: 100%;
        object-fit: cover
    }

.em-list {
    list-style: none;
    margin: 1.8rem 0 0;
    padding: 0;
    display: grid;
    gap: 1.1rem
}

    .em-list li {
        display: grid;
        grid-template-columns: 40px 1fr;
        gap: 1rem
    }

    .em-list .ic {
        width: 40px;
        height: 40px;
        border-radius: 10px;
        background: var(--em-blue);
        display: grid;
        place-items: center
    }

        .em-list .ic svg {
            width: 20px;
            height: 20px;
            stroke: #fff;
            fill: none;
            stroke-width: 2;
            stroke-linecap: round;
            stroke-linejoin: round
        }

    .em-list h3 {
        font-size: 1.05rem;
        margin-bottom: .15rem
    }

    .em-list p {
        color: var(--em-muted);
        font-size: .93rem
    }

/* ================= CAMPAIGN TYPES ================= */
.em-grid4 {
    display: grid;
    grid-template-columns: repeat(4,1fr);
    gap: 1rem
}

.em-box {
    background: var(--em-bg);
    border: 1px solid var(--em-line);
    border-radius: 14px;
    padding: 1.4rem
}

    .em-box h3 {
        font-size: 1.05rem;
        color: var(--em-blue);
        margin-bottom: .9rem
    }

    .em-box ul {
        list-style: none;
        margin: 0;
        padding: 0;
        display: grid;
        gap: .5rem;
        font-size: .94rem
    }

    .em-box li {
        display: flex;
        align-items: center;
        gap: .6rem
    }

        .em-box li::before {
            content: "";
            width: 6px;
            height: 6px;
            border-radius: 50%;
            background: var(--em-pink);
            flex: none
        }

/* ================= STEPS ================= */
.em-steps {
    display: grid;
    grid-template-columns: repeat(5,1fr);
    gap: 1.2rem;
    counter-reset: em;
    position: relative
}

    .em-steps::before {
        content: "";
        position: absolute;
        left: 5%;
        right: 5%;
        top: 26px;
        height: 2px;
        background: repeating-linear-gradient(90deg,var(--em-blue) 0 8px,transparent 8px 16px);
        opacity: .4
    }

.em-step {
    position: relative;
    text-align: center;
    padding: 0 .4rem
}

    .em-step::before {
        counter-increment: em;
        content: counter(em);
        display: grid;
        place-items: center;
        width: 54px;
        height: 54px;
        margin: 0 auto 1rem;
        border-radius: 50%;
        background: var(--em-blue);
        color: #fff;
        font-family: var(--em-head);
        font-weight: 800;
        font-size: 1.2rem;
        box-shadow: 0 0 0 8px var(--em-tint)
    }

    .em-step h3 {
        font-size: 1.08rem;
        margin-bottom: .4rem
    }

    .em-step p {
        color: var(--em-muted);
        font-size: .92rem
    }

/* ================= FAQ ================= */
.em-faq {
    max-width: 820px;
    margin-inline: auto
}

    .em-faq details {
        border-bottom: 1px solid var(--em-line)
    }

    .em-faq summary {
        list-style: none;
        cursor: pointer;
        display: flex;
        justify-content: space-between;
        align-items: center;
        gap: 1rem;
        padding: 1.3rem 0;
        font-family: var(--em-head);
        font-weight: 800;
        font-size: clamp(1.02rem,2vw,1.3rem)
    }

        .em-faq summary::-webkit-details-marker {
            display: none
        }

        .em-faq summary::after {
            content: "+";
            font-size: 1.6rem;
            line-height: 1;
            color: var(--em-blue);
            transition: transform .3s
        }

    .em-faq details[open] summary::after {
        transform: rotate(45deg)
    }

    .em-faq details p {
        padding: 0 0 1.3rem;
        color: var(--em-muted);
        max-width: 68ch
    }

/* ================= CTA ================= */
.em-cta {
    background: linear-gradient(135deg,#0a1230,#1d3fd1);
    color: #fff;
    border-radius: 22px;
    padding: clamp(2.2rem,6vw,4.5rem);
    display: flex;
    flex-wrap: wrap;
    gap: 2rem;
    align-items: center;
    justify-content: space-between;
    position: relative;
    overflow: hidden
}

    .em-cta::after {
        content: "";
        position: absolute;
        right: -80px;
        top: -80px;
        width: 280px;
        height: 280px;
        border-radius: 50%;
        border: 2px solid rgba(255,111,163,.45)
    }

    .em-cta h2 {
        color: #fff;
        font-size: clamp(1.6rem,3.6vw,2.7rem);
        max-width: 20ch
    }

    .em-cta p {
        color: rgba(255,255,255,.8);
        margin-top: .8rem;
        max-width: 46ch
    }

    .em-cta .em-btn-fill {
        background: #fff;
        color: var(--em-blue);
        border-color: #fff;
        position: relative;
        z-index: 2
    }

        .em-cta .em-btn-fill:hover {
            background: transparent;
            color: #fff
        }

/* reveal */
.em-js .em-rv {
    opacity: 0;
    transform: translateY(28px);
    transition: opacity .8s ease,transform .8s ease
}

    .em-js .em-rv.em-in {
        opacity: 1;
        transform: none
    }

/* ================= RESPONSIVE ================= */
@media (max-width:1100px) {
    .em-cards {
        grid-template-columns: repeat(2,1fr)
    }

    .em-grid4 {
        grid-template-columns: repeat(2,1fr)
    }

    .em-steps {
        grid-template-columns: repeat(3,1fr);
        row-gap: 2rem
    }

        .em-steps::before {
            display: none
        }
}

@media (max-width:900px) {
    .em-hero-grid, .em-split {
        grid-template-columns: 1fr
    }

    .em-mail {
        max-width: 520px;
        margin-inline: auto
    }

    .em-chip.c1 {
        left: -2%
    }

    .em-chip.c2 {
        right: -2%
    }

    .em-split-img {
        max-width: 520px;
        margin-inline: auto;
        width: 100%
    }

    .em-strip-grid {
        grid-template-columns: repeat(2,1fr)
    }

    .em-strip-item:nth-child(2) {
        border-right: 0
    }

    .em-strip-item:nth-child(-n+2) {
        border-bottom: 1px solid var(--em-line)
    }
}

@media (max-width:767px) {
    .em-page {
        --em-offset: calc(var(--nav2-h,38px) + var(--nav-h,64px))
    }

    .em-hero-cta .em-btn {
        flex: 1 1 100%
    }

    .em-cards {
        grid-template-columns: 1fr
    }

    .em-steps {
        grid-template-columns: 1fr 1fr
    }

    .em-card-img {
        height: 165px
    }

    .em-cta {
        text-align: center;
        justify-content: center
    }

        .em-cta .em-btn {
            width: 100%
        }
}

@media (max-width:480px) {
    .em-wrap {
        width: min(1180px,100% - 1.6rem)
    }

    .em-grid4, .em-steps {
        grid-template-columns: 1fr
    }

    .em-mail-bar span {
        display: none
    }

    .em-chip.c1 {
        left: 0;
        bottom: -8%
    }

    .em-chip.c2 {
        right: 0;
        top: -10%
    }
}

@media (prefers-reduced-motion:reduce) {
    .em-page * {
        animation: none !important;
        transition: none !important
    }

    .em-js .em-rv {
        opacity: 1;
        transform: none
    }
}
