/* DS Popup Manager — popup.css */

/* ── Overlay ──────────────────────────────────────────────────────────────── */
.ds-popup-overlay {
    position: fixed;
    inset: 0;
    z-index: 99999;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(0, 0, 0, 0.55);
    padding: 1rem;
    opacity: 0;
    transition: opacity 0.3s ease;
    font-family: var(--font-play);
}

.ds-popup-overlay[hidden] {
    display: none !important;
}

.ds-popup-overlay.is-visible {
    opacity: 1;
}

/* ── Modal box ────────────────────────────────────────────────────────────── */
.ds-popup-modal {
    position: relative;
    width: 100%;
    background: #fff;
    border-radius: 6px;
    box-shadow: 0 8px 40px rgba(0, 0, 0, 0.25);
    padding: 4rem;
    max-height: 90vh;
    overflow-y: auto;
    transform: translateY(16px);
    transition: transform 0.3s ease;
}

.ds-popup-overlay.is-visible .ds-popup-modal {
    transform: translateY(0);
}

/* ── Close button ─────────────────────────────────────────────────────────── */
.ds-popup-close {
    position: absolute;
    top: 0.75rem;
    right: 0.75rem;
    width: 2.5rem;
    height: 2.5rem;
    border: none;
    background: transparent;
    font-size: 1.5rem;
    line-height: 1;
    cursor: pointer;
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 4px;
    transition: background 0.2s, color 0.2s;
    padding: 0;
    background-color: black;
    border-radius: 50%;
    border: 1px solid white;
}

.ds-popup-close:hover {
    background: #f0f0f0;
    color: #111;
}

/* ── Content blocks ───────────────────────────────────────────────────────── */
.ds-popup-block + .ds-popup-block {
    margin-top: 1.25rem;
}

/* Heading & Text */
.ds-popup-eyebrow {
    margin: 0 0 0.25rem;
    font-size: 0.75rem;
    text-transform: uppercase;
    font-weight: 500;
    letter-spacing: 0.06em;
}

.ds-popup-heading {
    margin: 0 0 0.5rem;
    font-size: 2.5rem;
    line-height: 1.3;
}

.ds-popup-subtitle {
    margin: 0 0 0.5rem;
    font-size: 2rem;
    font-weight: 400;
    line-height: 1.3;
}

.ds-popup-body {
    font-size: 1.6rem;
    line-height: 1.6;
    color: #444;
}

.ds-popup-body p:last-child {
    margin-bottom: 0;
}

/* Image */
.ds-popup-block--image img {
    display: block;
    max-width: 100%;
    height: auto;
    border-radius: 4px;
}

.ds-popup-caption {
    margin: 0.4rem 0 0;
    font-size: 0.85rem;
    color: #888;
}

/* CTA Button */
.ds-popup-block--cta {
    text-align: center;
}

.ds-popup-btn {
    display: inline-block;
    padding: 0.75rem 2rem;
    border-radius: 4px;
    font-size: 1rem;
    font-weight: 600;
    text-decoration: none;
    transition: opacity 0.2s, background 0.2s;
    cursor: pointer;
}

.ds-popup-btn--primary {
    background: #1a1a1a;
    color: #fff;
}

.ds-popup-btn--primary:hover {
    opacity: 0.85;
}

.ds-popup-btn--secondary {
    background: #666;
    color: #fff;
}

.ds-popup-btn--secondary:hover {
    opacity: 0.85;
}

.ds-popup-btn--outline {
    background: transparent;
    color: #1a1a1a;
    border: 2px solid #1a1a1a;
}

.ds-popup-btn--outline:hover {
    background: #1a1a1a;
    color: #fff;
}

/* ── Reduced motion ───────────────────────────────────────────────────────── */
@media (prefers-reduced-motion: reduce) {
    .ds-popup-overlay,
    .ds-popup-modal {
        transition: none;
    }
}
