/**
 * SKELETON SOFTWARE — BLOCK SYSTEM STYLES (SPIDER PAGES)
 * ======================================================
 * Relies on spider theme :root variables:
 *   --sp-bg, --sp-text, --sp-headline, --sp-muted,
 *   --sp-red, --sp-blue, --sp-blue-soft,
 *   --sp-max-width, --sp-page-pad-x, --sp-font, --sp-display-font
 *
 * Load AFTER the active spider theme stylesheet:
 *   <link href="/assets/css/blockstyle/blocks.css" rel="stylesheet">
 */

/* ========================= BLOCKS ZONE ========================= */

.blocks-zone {
    max-width: var(--sp-max-width, 1040px);
    margin: 0 auto;
    padding: 3rem var(--sp-page-pad-x, 2rem);
}

/* ========================= SHARED BLOCK BASE ========================= */

.sk-cta {
    margin: 0 auto 2.5rem;
}

.sk-cta:last-child {
    margin-bottom: 0;
}

.sk-cta__title {
    font-family: var(--sp-display-font, var(--sp-font, inherit));
    font-size: 2rem;
    font-weight: 700;
    line-height: 1.2;
    color: var(--sp-headline, var(--sp-text, #1f2937));
    margin-bottom: 1rem;
}

.sk-cta__text {
    font-size: 1.0625rem;
    line-height: 1.8;
    color: var(--sp-muted, #6b7280);
    margin-bottom: 2rem;
}

/* ========================= BLOCK BUTTON ========================= */

.sk-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.625rem;
    padding: 1rem 2rem;
    background: var(--sp-blue, var(--sp-red, #1e3a8a));
    color: white;
    font-family: var(--sp-font, inherit);
    font-weight: 600;
    font-size: 1rem;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    border: none;
    border-radius: 4px;
    text-decoration: none;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.sk-btn:hover {
    background: var(--sp-red, #b91c1c);
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.2);
}

/* ========================= CTA IMAGE BLOCK ========================= */

.sk-cta-image {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
    align-items: center;
    background: var(--sp-bg, #ffffff);
    border: 1px solid rgba(0, 0, 0, 0.08);
    border-radius: 6px;
    padding: 0;
    overflow: hidden;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.06);
}

.sk-cta-image .sk-cta__media img {
    width: 100%;
    height: 280px;
    object-fit: cover;
    display: block;
}

.sk-cta-image .sk-cta__body {
    padding: 2rem;
}

@media (min-width: 768px) {
    .sk-cta-image {
        grid-template-columns: 1fr 1fr;
    }

    .sk-cta-image .sk-cta__media img {
        height: 100%;
        min-height: 320px;
    }
}

/* ========================= CTA BASIC BLOCK ========================= */

.sk-cta-basic {
    background: var(--sp-bg, #ffffff);
    border: 1px solid rgba(0, 0, 0, 0.08);
    border-radius: 6px;
    padding: 3rem;
    text-align: center;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.06);
}

.sk-cta-basic .sk-cta__title {
    font-size: 2.25rem;
}

.sk-cta-basic .sk-cta__text {
    max-width: 640px;
    margin-left: auto;
    margin-right: auto;
}

/* ========================= CTA VIDEO BLOCK ========================= */

.sk-cta-video {
    background: var(--sp-bg, #ffffff);
    border: 1px solid rgba(0, 0, 0, 0.08);
    border-radius: 6px;
    overflow: hidden;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.06);
}

.sk-cta-video .sk-cta__media {
    position: relative;
    width: 100%;
}

.sk-cta-video .sk-cta__media video,
.sk-cta-video .sk-cta__media iframe {
    width: 100%;
    aspect-ratio: 16 / 9;
    display: block;
    border: 0;
}

.sk-cta-video .sk-cta__body {
    padding: 2rem;
    text-align: center;
}

/* ========================= LIST ITEMS IN BLOCKS ========================= */

.sk-list {
    list-style: none;
    padding: 0;
    margin: 0 0 2rem;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 0.75rem;
}

.sk-list li {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-size: 0.9375rem;
    color: var(--sp-muted, #6b7280);
}

.sk-list li::before {
    content: '\2713';
    width: 24px;
    height: 24px;
    background: var(--sp-blue, #1e3a8a);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.75rem;
    font-weight: 700;
    flex-shrink: 0;
}

/* ========================= INACTIVE STATE ========================= */

.sk-cta--inactive {
    opacity: 0.5;
    pointer-events: none;
}
