/* ── Culina Health — Exit Intent Popup ── */

:root {
    --ei-green:       #2E5844;
    --ei-green-dark:  #2c5240;
    --ei-green-light: #e8f0eb;
    --ei-cream:       #faf8f4;
    --ei-text:        #1a2e24;
    --ei-muted:       #6b8578;
    --ei-radius:      40px;
    --ei-shadow:      0 24px 64px rgba(0,0,0,.18), 0 4px 16px rgba(0,0,0,.08);
    --ei-font:        'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

/* ── Overlay ── */
#culina-ei-overlay {
    position: fixed;
    inset: 0;
    background: rgba(22, 40, 30, 0.6);
    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px);
    z-index: 99998;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    opacity: 0;
    visibility: hidden;
    transition: opacity .3s ease, visibility .3s ease;
}
#culina-ei-overlay.is-visible {
    opacity: 1;
    visibility: visible;
}

/* ── Modal ── */
#culina-ei-modal {
    background: var(--ei-cream);
    border-radius: var(--ei-radius);
    max-width: 892px;
    width: 100%;
    position: relative;
    overflow: hidden;
    transform: translateY(30px) scale(.95);
    transition: transform .45s cubic-bezier(.22,1,.36,1);
    font-family: var(--ei-font);
}
#culina-ei-overlay.is-visible #culina-ei-modal {
    transform: translateY(0) scale(1);
}

/* ── Hero image ── */
#culina-ei-image {
    width: 100%;
    aspect-ratio: 377/112;
    object-fit: cover;
    object-position: center center;
    display: block;
}
#culina-ei-image-placeholder {
    width: 100%;
    aspect-ratio: 377/112;
    background: linear-gradient(135deg, #c8ddd3 0%, #a4c4b4 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 48px;
}

/* ── Close button ── */
#culina-ei-close {
    position: absolute;
    top: 14px;
    right: 14px;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    border: none;
    color: #F5F7F3;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background .15s, transform .2s;
    z-index: 2;
    padding: 0;
    backdrop-filter: blur(4px);
    background-color: transparent;
}
#culina-ei-close:hover {
    transform: rotate(90deg);
}

/* ── Logo (shown when no hero image) ── */
#culina-ei-logo-wrap {
    display: flex;
    justify-content: center;
    margin-bottom: 24px;
    animation: ei-fadein .4s ease both;
}
#culina-ei-logo-wrap img {
    height: 30px;
    width: auto;
    object-fit: contain;
}
#culina-ei-icon {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: var(--ei-green-light);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 22px;
    font-size: 24px;
    animation: ei-pop .5s cubic-bezier(.34,1.56,.64,1) .1s both;
}
@keyframes ei-pop {
    from { transform: scale(.4); opacity: 0; }
    to   { transform: scale(1);  opacity: 1; }
}
@keyframes ei-fadein {
    from { opacity: 0; transform: translateY(-6px); }
    to   { opacity: 1; transform: translateY(0); }
}

/* ── Body ── */
#culina-ei-body {
    padding: 40px 68px 36px;
    text-align: center;
    font-family: var(--ei-font);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 40px;
    background-color: #F5F7F3;
}

/* Headline — serif when hero image is present */
#culina-ei-headline {
    color: #416756;
    text-align: center;
    leading-trim: both;
    text-edge: cap;
    font-family: "Marcellus", serif;
    font-size: 40px;
    font-style: normal;
    font-weight: 400;
    line-height: 52px; /* 130% */
}
/* Sans-serif headline when no image (logo mode) */
.culina-ei--no-image #culina-ei-headline {
    font-family: var(--ei-font);
    font-size: 28px;
    font-weight: 700;
    letter-spacing: -.03em;
}

/* Subtext */
#culina-ei-subtext {
    color: #416756;
    text-align: center;
    leading-trim: both;
    text-edge: cap;
    font-family: "Plus Jakarta Sans";
    font-size: 15px;
    font-style: normal;
    font-weight: 400;
    line-height: 25px;
    max-width: 548px;
}

/* ── CTA wrap ── */
#culina-ei-cta-wrap {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    width: 100%;
}

/* CTA Button */
#culina-ei-cta {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 3px;
    background: var(--ei-green);
    color: #fff;
    text-decoration: none;
    font-family: var(--ei-font);
    border-radius: 10px;
    border: none;
    cursor: pointer;
    transition: background .2s, transform .15s, box-shadow .2s;
    box-shadow: 0 4px 16px rgba(58,107,82,.28);
    width: 100%;
    max-width: 380px;
    padding: 16px 32px;
}
#culina-ei-cta:hover {
    background: var(--ei-green-dark);
    transform: translateY(-2px);
    box-shadow: 0 7px 22px rgba(58,107,82,.36);
}
#culina-ei-cta:active { transform: translateY(0); }

.ei-cta-label {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 15px;
    font-weight: 600;
    letter-spacing: .01em;
}
.ei-cta-label svg {
    width: 15px;
    height: 15px;
    transition: transform .2s;
    flex-shrink: 0;
}
#culina-ei-cta:hover .ei-cta-label svg { transform: translateX(3px); }

.ei-cta-sub {
    font-size: 12px;
    font-weight: 400;
    opacity: .75;
}

/* Dismiss */
#culina-ei-dismiss {
    display: block;
    font-family: var(--ei-font);
    font-size: 12.5px;
    font-weight: 500;
    color: var(--ei-muted);
    cursor: pointer;
    background: none;
    border: none;
    text-align: center;
    width: 100%;
    opacity: .75;
    transition: opacity .15s, color .15s;
    padding: 0;
}
#culina-ei-dismiss:hover {
    opacity: 1;
    color: var(--ei-text);
}

/* ── Mobile ── */
@media (max-width: 480px) {
}