/**
 * CTA Block Styles — ALKEMIA dark luxury theme
 *
 * @package AloraAlkemia
 */

/* ── Section ─────────────────────────────────────────────── */
.cta-section {
    position: relative;
    padding: 112px 20px;
    background: oklch(0.11 0.042 262);
    overflow: hidden;
    text-align: center;
}

/* Top hairline */
.cta-section::before {
    content: '';
    position: absolute;
    inset-inline: 0;
    top: 0;
    height: 1px;
    background: rgba(255, 255, 255, 0.08);
    pointer-events: none;
}

/* Subtle radial glow centered */
.cta-section::after {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(ellipse 60% 50% at 50% 100%,
        color-mix(in oklab, var(--color-red) 8%, transparent),
        transparent 70%);
    pointer-events: none;
    z-index: 0;
}

/* Alignment modifiers */
.cta-section--left   { text-align: left; }
.cta-section--center { text-align: center; }
.cta-section--right  { text-align: right; }

/* ── Container ───────────────────────────────────────────── */
.cta-container {
    max-width: 800px;
    margin: 0 auto;
    position: relative;
    z-index: 1;
}

/* ── Content ─────────────────────────────────────────────── */
.cta-content {
    margin-bottom: 2.5rem;
}

.cta-title {
    font-family: var(--font-display, 'Montserrat', sans-serif);
    font-size: clamp(2rem, 4vw, 3rem);
    font-weight: 700;
    letter-spacing: -0.02em;
    line-height: 1.15;
    margin: 0 0 1.25rem;
    color: #ffffff;
}

.cta-description {
    font-size: clamp(1rem, 2.5vw, 1.125rem);
    line-height: 1.65;
    color: rgba(255, 255, 255, 0.60);
    margin: 0;
}

/* ── Button ──────────────────────────────────────────────── */
.cta-button-container {
    margin-top: 2rem;
}

.cta-button {
    display: inline-block;
    padding: 16px 40px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
    font-size: 1rem;
    letter-spacing: 0.01em;
    transition: transform 0.25s ease, box-shadow 0.25s ease, background 0.25s ease;
}

.cta-button:hover {
    transform: translateY(-2px);
}

/* Primary */
.cta-section--primary .cta-button {
    background: var(--color-red, #FF3300);
    color: #ffffff;
    border: 2px solid var(--color-red, #FF3300);
    box-shadow: 0 4px 24px color-mix(in oklab, var(--color-red) 30%, transparent);
}

.cta-section--primary .cta-button:hover {
    background: oklch(0.52 0.22 25);
    border-color: oklch(0.52 0.22 25);
    box-shadow: 0 8px 32px color-mix(in oklab, var(--color-red) 40%, transparent);
}

/* Secondary — dark glassmorphism */
.cta-section--secondary .cta-button {
    background: color-mix(in oklab, white 8%, transparent);
    color: rgba(255, 255, 255, 0.85);
    border: 1px solid rgba(255, 255, 255, 0.18);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
}

.cta-section--secondary .cta-button:hover {
    background: color-mix(in oklab, white 14%, transparent);
    border-color: rgba(255, 255, 255, 0.28);
}

/* Outline */
.cta-section--outline .cta-button {
    background: transparent;
    color: var(--color-red, #FF3300);
    border: 1.5px solid var(--color-red, #FF3300);
}

.cta-section--outline .cta-button:hover {
    background: var(--color-red, #FF3300);
    color: #ffffff;
}

/* ── Responsive ──────────────────────────────────────────── */
@media (max-width: 1023px) {
    .cta-section { padding: 80px 20px; }
}

@media (max-width: 767px) {
    .cta-section { padding: 64px 16px; }
    .cta-content { margin-bottom: 2rem; }
    .cta-button {
        padding: 14px 28px;
        font-size: 0.95rem;
        width: 100%;
        display: block;
        text-align: center;
    }
    .cta-button-container { margin-top: 1.25rem; }
}

@media (prefers-reduced-motion: reduce) {
    .cta-button { transition: none; }
    .cta-button:hover { transform: none; }
}
