.hhpm-popup {
    --hhpm-bg: #fff;
    --hhpm-text: #111;
    --hhpm-accent: #629647;
    --hhpm-overlay: rgba(11, 19, 13, .72);
    --hhpm-max-width: 760px;
    position: fixed;
    inset: 0;
    z-index: 999999;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 24px;
    box-sizing: border-box;
}

.hhpm-popup.hhpm-is-open { display: flex; }
.hhpm-popup *, .hhpm-popup *::before, .hhpm-popup *::after { box-sizing: border-box; }
.hhpm-overlay { position: absolute; inset: 0; background: var(--hhpm-overlay); backdrop-filter: blur(4px); }

.hhpm-dialog {
    position: relative;
    width: min(100%, var(--hhpm-max-width));
    max-height: min(88vh, 900px);
    overflow: auto;
    background: var(--hhpm-bg);
    color: var(--hhpm-text);
    border-radius: 24px;
    box-shadow: 0 30px 90px rgba(0, 0, 0, .32);
    animation: hhpmPop .28s ease-out;
}

.hhpm-layout-center .hhpm-dialog { display: block; }
.hhpm-layout-split .hhpm-dialog { display: grid; grid-template-columns: minmax(0, .95fr) minmax(0, 1.05fr); overflow: hidden; }

.hhpm-layout-slide-right { justify-content: flex-end; align-items: stretch; padding: 0; }
.hhpm-layout-slide-left { justify-content: flex-start; align-items: stretch; padding: 0; }
.hhpm-layout-slide-right .hhpm-dialog,
.hhpm-layout-slide-left .hhpm-dialog {
    width: min(92vw, 460px);
    max-height: 100vh;
    border-radius: 0;
    animation: none;
}
.hhpm-layout-slide-right.hhpm-is-open .hhpm-dialog { animation: hhpmSlideRight .32s ease-out; }
.hhpm-layout-slide-left.hhpm-is-open .hhpm-dialog { animation: hhpmSlideLeft .32s ease-out; }

.hhpm-x {
    position: absolute;
    z-index: 3;
    top: 14px;
    right: 14px;
    width: 38px;
    height: 38px;
    border: 0;
    border-radius: 50%;
    background: rgba(255,255,255,.92);
    color: #111;
    font-size: 28px;
    line-height: 1;
    cursor: pointer;
    box-shadow: 0 4px 20px rgba(0,0,0,.12);
}

.hhpm-image-wrap { width: 100%; min-height: 220px; overflow: hidden; background: #eef2ec; }
.hhpm-layout-center .hhpm-image-wrap { height: clamp(220px, 34vw, 330px); }
.hhpm-layout-split .hhpm-image-wrap { min-height: 100%; }
.hhpm-layout-slide-right .hhpm-image-wrap,
.hhpm-layout-slide-left .hhpm-image-wrap { height: 260px; }
.hhpm-image { width: 100%; height: 100%; object-fit: cover; display: block; }

.hhpm-content-wrap { padding: clamp(28px, 5vw, 54px); }
.hhpm-eyebrow {
    margin-bottom: 12px;
    color: var(--hhpm-accent);
    font: 700 12px/1.2 Raleway, Arial, sans-serif;
    letter-spacing: .12em;
    text-transform: uppercase;
}

.hhpm-title {
    margin: 0 0 16px;
    color: var(--hhpm-text);
    font-family: "Barlow Condensed", Impact, Arial Narrow, sans-serif;
    font-size: clamp(36px, 6vw, 62px);
    font-weight: 700;
    line-height: .95;
    letter-spacing: -.02em;
}

.hhpm-body {
    color: var(--hhpm-text);
    font-family: Raleway, Arial, sans-serif;
    font-size: 16px;
    line-height: 1.65;
}
.hhpm-body > :first-child { margin-top: 0; }
.hhpm-body > :last-child { margin-bottom: 0; }
.hhpm-body a { color: var(--hhpm-accent); }

.hhpm-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 26px; }
.hhpm-primary,
.hhpm-secondary,
.hhpm-trigger-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 48px;
    padding: 13px 22px;
    border-radius: 999px;
    font: 700 14px/1 Raleway, Arial, sans-serif;
    text-decoration: none !important;
    transition: transform .2s ease, box-shadow .2s ease, opacity .2s ease;
    cursor: pointer;
}
.hhpm-primary { background: var(--hhpm-accent); color: #fff !important; box-shadow: 0 10px 26px rgba(0,0,0,.14); }
.hhpm-secondary { border: 1px solid currentColor; color: var(--hhpm-text) !important; background: transparent; }
.hhpm-primary:hover,
.hhpm-secondary:hover,
.hhpm-trigger-button:hover { transform: translateY(-1px); opacity: .94; }

.hhpm-close-text {
    display: inline-block;
    margin-top: 16px;
    padding: 0;
    border: 0;
    background: transparent;
    color: var(--hhpm-text);
    opacity: .66;
    font: 600 13px/1.4 Raleway, Arial, sans-serif;
    text-decoration: underline;
    cursor: pointer;
}

body.hhpm-lock { overflow: hidden !important; }

@keyframes hhpmPop {
    from { opacity: 0; transform: translateY(14px) scale(.98); }
    to { opacity: 1; transform: translateY(0) scale(1); }
}
@keyframes hhpmSlideRight {
    from { transform: translateX(100%); }
    to { transform: translateX(0); }
}
@keyframes hhpmSlideLeft {
    from { transform: translateX(-100%); }
    to { transform: translateX(0); }
}

@media (max-width: 760px) {
    .hhpm-popup { padding: 14px; }
    .hhpm-dialog { border-radius: 18px; max-height: 92vh; }
    .hhpm-layout-split .hhpm-dialog { display: block; }
    .hhpm-layout-split .hhpm-image-wrap { height: 220px; min-height: 0; }
    .hhpm-content-wrap { padding: 28px 22px 26px; }
    .hhpm-title { font-size: clamp(36px, 12vw, 52px); line-height: .98; }
    .hhpm-body { font-size: 15px; }
    .hhpm-actions { flex-direction: column; }
    .hhpm-primary, .hhpm-secondary { width: 100%; }
    .hhpm-x { top: 10px; right: 10px; }
}
