/**
 * Module: CTA Variant Composition Layer
 * Target: src/core_apps/frontend/static/frontend/themes/_shared/sections/cta/cta-variants.css
 *
 * Variant Identity Rules:
 *   default → Full-width cinematic banner with image bg + gradient overlay
 *   split   → Brand-colored background, side-by-side text + button, diagonal accent
 *   boxed   → Gradient floating card with elevated shadow, centered content
 *
 * Specifications (HMS-Grade):
 * - Rule A: Zero sibling positional dependence
 * - Rule B: Rigid Static Weight Budget (Limit: 10 KB uncompressed)
 * - Rule C: Absolute scoping containment
 */

/* =============================================================================
   0. SHARED BASE
   ============================================================================= */

.page-home .home-composer .section-cta {
    position: relative;
}


/* =============================================================================
   1. VARIANT: DEFAULT — Full-Width Cinematic Banner
   
   Design: Full-bleed background image (var(--cta-bg)), dark gradient overlay,
   centered white text, CTA button. Subtle scale(1.05) zoom on hover
   (NOT parallax — avoids Mobile Safari issues and perf problems).
   ============================================================================= */

.page-home .home-composer .section-cta--default {
    overflow: hidden;
    min-height: clamp(280px, 40vh, 420px);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: var(--layout-breakout-inline, 0);
}

/* Background Image Layer */
.page-home .home-composer .section-cta--default .cta-default__bg {
    position: absolute;
    inset: 0;
    background-image: var(--cta-bg);
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    transition: transform 0.8s ease;
    z-index: var(--z-flat, 0);
}

.page-home .home-composer .section-cta--default:hover .cta-default__bg {
    transform: scale(1.05);
}

/* Dark Gradient Overlay */
.page-home .home-composer .section-cta--default .cta-default__overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(
        180deg,
        rgba(0, 0, 0, 0.55) 0%,
        rgba(0, 0, 0, 0.70) 100%
    );
    z-index: var(--z-above, 1);
}

/* Content — centered above overlay */
.page-home .home-composer .section-cta--default .cta-default__content {
    position: relative;
    z-index: var(--z-frame, 5);
    text-align: center;
    padding: clamp(2rem, 5vw, 4rem) clamp(1.5rem, 5vw, 3rem);
    max-width: 720px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1.5rem;
}

.page-home .home-composer .section-cta--default .cta-default__heading {
    font-family: var(--font-family-secondary, serif);
    font-size: clamp(1.6rem, 3.5vw, 2.5rem);
    font-weight: 400;
    color: #ffffff;
    margin: 0;
    line-height: 1.25;
    letter-spacing: 0.01em;
}

/* Decorative Rule — thin white line */
.page-home .home-composer .section-cta--default .cta-default__rule {
    display: block;
    width: 3rem;
    height: 2px;
    background: rgba(255, 255, 255, 0.5);
    border-radius: 1px;
}

.page-home .home-composer .section-cta--default .cta-default__button {
    font-size: clamp(0.9rem, 1.1vw, 1rem);
}

/* Mobile */
@media screen and (max-width: 768px) {
    .page-home .home-composer .section-cta--default {
        min-height: 260px;
    }

    .page-home .home-composer .section-cta--default:hover .cta-default__bg {
        transform: none; /* Disable zoom on mobile — touch devices */
    }
}


/* =============================================================================
   2. VARIANT: SPLIT — Brand-Colored Side-by-Side
   
   Design: Brand primary background with white text. Side-by-side layout
   with text left, CTA button right. Diagonal accent stripe.
   ============================================================================= */

.page-home .home-composer .section-cta--split {
    background: var(--brand-primary-color);
    color: #ffffff;
    overflow: hidden;
    margin: var(--layout-breakout-inline, 0);
}

/* Diagonal Accent Stripe — decorative geometric element */
.page-home .home-composer .section-cta--split::before {
    content: '';
    position: absolute;
    top: 0;
    right: -5%;
    width: 30%;
    height: 100%;
    background: rgba(255, 255, 255, 0.06);
    transform: skewX(-12deg);
    z-index: var(--z-above, 1);
    pointer-events: none;
}

.page-home .home-composer .section-cta--split .split-cta-wrapper {
    position: relative;
    z-index: var(--z-frame, 5);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: clamp(1.5rem, 3vw, 2.5rem);
    padding: clamp(2rem, 4vw, 3.5rem) clamp(1.5rem, 5vw, 4rem);
    max-width: 1200px;
    margin: 0 auto;
}

.page-home .home-composer .section-cta--split .split-content {
    flex: 1 1 0;
}

.page-home .home-composer .section-cta--split .split-cta__heading {
    font-family: var(--font-family-secondary, serif);
    font-size: clamp(1.4rem, 2.5vw, 2rem);
    font-weight: 400;
    color: #ffffff;
    margin: 0 0 0.5rem 0;
    line-height: 1.25;
}

.page-home .home-composer .section-cta--split .split-cta__text {
    font-family: var(--font-family-primary);
    font-size: clamp(0.9rem, 1.1vw, 1rem);
    color: rgba(255, 255, 255, 0.85);
    margin: 0;
    line-height: 1.6;
}

.page-home .home-composer .section-cta--split .split-actions {
    flex-shrink: 0;
}

.page-home .home-composer .section-cta--split .split-cta__button {
    background: #ffffff;
    color: var(--brand-primary-color);
    border: none;
    font-weight: 600;
    transition: transform var(--transition-fast, 0.2s ease), box-shadow var(--transition-fast, 0.2s ease);
}

.page-home .home-composer .section-cta--split .split-cta__button:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

/* Mobile — stack vertically */
@media screen and (max-width: 768px) {
    .page-home .home-composer .section-cta--split .split-cta-wrapper {
        flex-direction: column;
        text-align: center;
    }

    .page-home .home-composer .section-cta--split .split-cta__button {
        width: 100%;
    }
}


/* =============================================================================
   3. VARIANT: BOXED — Gradient Floating Card
   
   Design: Centered floating card with gradient background from brand colors,
   elevated shadow, centered text, button with hover scale.
   ============================================================================= */

.page-home .home-composer .section-cta--boxed {
    padding: clamp(2rem, 5vw, 4rem) clamp(1rem, 3vw, 2rem);
}

.page-home .home-composer .section-cta--boxed .boxed-cta-card {
    max-width: 860px;
    margin: 0 auto;
    padding: clamp(2.5rem, 5vw, 4rem) clamp(2rem, 4vw, 3.5rem);
    border-radius: var(--border-radius-secondary, 0.75rem);
    background: var(--gradient-primary, linear-gradient(135deg, var(--brand-primary-color), #333333));
    color: #ffffff;
    text-align: center;
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.12);
    position: relative;
    overflow: hidden;
}

/* Subtle pattern overlay */
.page-home .home-composer .section-cta--boxed .boxed-cta-card::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image: radial-gradient(circle at 20% 80%, rgba(255,255,255,0.05) 0%, transparent 50%),
                       radial-gradient(circle at 80% 20%, rgba(255,255,255,0.05) 0%, transparent 50%);
    pointer-events: none;
}

.page-home .home-composer .section-cta--boxed .boxed-cta__heading {
    font-family: var(--font-family-secondary, serif);
    font-size: clamp(1.5rem, 3vw, 2.2rem);
    font-weight: 400;
    color: #ffffff;
    margin: 0 0 1rem 0;
    line-height: 1.25;
    position: relative;
}

.page-home .home-composer .section-cta--boxed .boxed-cta__text {
    font-family: var(--font-family-primary);
    font-size: clamp(0.9rem, 1.1vw, 1.05rem);
    color: rgba(255, 255, 255, 0.85);
    margin: 0 auto 2rem auto;
    max-width: 520px;
    line-height: 1.7;
    position: relative;
}

.page-home .home-composer .section-cta--boxed .boxed-cta__button {
    display: inline-flex;
    justify-content: center;
    align-items: center;
    padding: 1rem 2rem;
    border-radius: var(--border-radius-primary, 0.25rem);
    text-transform: uppercase;
    text-decoration: none;
    background: #ffffff;
    color: var(--brand-primary-color);
    border: none;
    font-weight: 700;
    position: relative;
    transition: all var(--transition-fast, 0.2s ease);
}

.page-home .home-composer .section-cta--boxed .boxed-cta__button:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.2);
    filter: brightness(0.95);
}

/* Mobile */
@media screen and (max-width: 768px) {
    .page-home .home-composer .section-cta--boxed {
        padding: clamp(1.5rem, 4vw, 2.5rem) 1rem;
    }

    .page-home .home-composer .section-cta--boxed .boxed-cta__button {
        width: 100%;
    }
}
