/**
 * SKELETON SOFTWARE — BLOCK SYSTEM STYLES
 * ========================================
 * Relies on theme :root variables:
 *   --color-bg, --color-surface, --color-text, --color-text-soft,
 *   --color-accent, --color-accent-dark, --color-accent-green,
 *   --color-border, --container-max, --border-radius,
 *   --font-heading, --space-xs, --space-sm, --space-md, --space-lg, --space-xl
 *
 * Load AFTER the active theme stylesheet:
 *   <link href="/landing/css/blocks.css" rel="stylesheet">
 */

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

.blocks-zone {
    padding: var(--space-xl) 0;
    background: var(--color-bg);
}

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

.sk-cta {
    max-width: var(--container-max);
    margin: 0 auto var(--space-lg);
    padding: 0 1.5rem;
}

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

.sk-cta__title {
    font-family: var(--font-heading);
    font-size: 2rem;
    font-weight: 700;
    line-height: 1.2;
    letter-spacing: -0.02em;
    color: var(--color-text);
    margin-bottom: var(--space-sm);
}

.sk-cta__text {
    font-size: 1.0625rem;
    line-height: 1.8;
    color: var(--color-text-soft);
    margin-bottom: var(--space-md);
}

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

.sk-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.625rem;
    padding: 1rem 2rem;
    background: var(--color-accent);
    color: white;
    font-weight: 600;
    font-size: 1rem;
    border: none;
    border-radius: 8px;
    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(--color-accent-dark);
    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: var(--space-md);
    align-items: center;
    background: var(--color-surface);
    border: 1px solid var(--color-border);
    border-radius: var(--border-radius);
    padding: 0;
    overflow: hidden;
}

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

.sk-cta-image .sk-cta__body {
    padding: var(--space-md);
}

@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(--color-surface);
    border: 1px solid var(--color-border);
    border-radius: var(--border-radius);
    padding: var(--space-lg);
    text-align: center;
}

.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(--color-surface);
    border: 1px solid var(--color-border);
    border-radius: var(--border-radius);
    overflow: hidden;
}

.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: var(--space-md);
    text-align: center;
}

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

.sk-list {
    list-style: none;
    padding: 0;
    margin: 0 0 var(--space-md);
    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(--color-text-soft);
}

.sk-list li::before {
    content: '\2713';
    width: 24px;
    height: 24px;
    background: var(--color-accent-green, var(--color-accent));
    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;
}
