/**
 * CTA Block — Static Styles v3.6.
 *
 * Static CSS for layout, typography, and base component styling.
 * Dynamic CSS (colors, style presets, decorations) remains inline.
 *
 * @package Boost Theme Framework
 * @since 3.6.0
 */

/* /blocks/cta/style.css */

/* =============================================================================
   BASE SECTION
   ============================================================================= */

.boost-cta {
    position: relative;
    overflow: hidden;
    padding: 4rem 2rem;
    background: var(--boost-bg);
    color: var(--boost-text);
}

/* =============================================================================
   CONTAINER
   ============================================================================= */

.boost-cta__container {
    max-width: 1200px;
    margin: 0 auto;
    position: relative;
    z-index: 1;
}

/* =============================================================================
   GRID LAYOUT (two-column)
   ============================================================================= */

.boost-cta__grid {
    display: grid;
    gap: 4rem;
    align-items: center;
}

.boost-cta--layout-left .boost-cta__grid,
.boost-cta--layout-right .boost-cta__grid {
    grid-template-columns: 1fr 1fr;
}

.boost-cta--layout-left .boost-cta__content {
    order: 2;
}

.boost-cta--layout-left .boost-cta__media {
    order: 1;
}

.boost-cta--layout-right .boost-cta__content {
    order: 1;
}

.boost-cta--layout-right .boost-cta__media {
    order: 2;
}

/* =============================================================================
   CONTENT AREA
   ============================================================================= */

.boost-cta__content {
    text-align: left;
}

.boost-cta--layout-centered .boost-cta__content {
    text-align: center;
    max-width: 700px;
    margin: 0 auto;
    padding: 1.5rem 0;
}

/* Badge uses standard .boost-badge component - add CTA-specific spacing */
.boost-cta .boost-badge {
    margin-bottom: 1.5rem;
}

/* =============================================================================
   TITLE
   ============================================================================= */

.boost-cta__title {
    font-size: clamp(1.75rem, 4vw, 3rem);
    font-weight: 800;
    color: var(--boost-text);
    margin: 0 0 1rem;
    line-height: 1.2;
}

/* =============================================================================
   SUBTITLE
   ============================================================================= */

.boost-cta__subtitle {
    font-size: 1.1rem;
    color: var(--boost-text-muted);
    margin: 0 0 2rem;
    line-height: 1.6;
}

/* =============================================================================
   BUTTONS CONTAINER
   ============================================================================= */

.boost-cta__buttons {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.boost-cta--layout-centered .boost-cta__buttons {
    justify-content: center;
}

.boost-cta--layout-right .boost-cta__buttons {
    justify-content: flex-end;
}

/* Buttons use standard .boost-btn component */

/* Phone button — click-to-call with icon */
.boost-btn--phone {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.boost-btn__phone-icon {
    flex-shrink: 0;
}

/* =============================================================================
   FEATURES LIST
   ============================================================================= */

.boost-cta__features {
    display: flex;
    flex-wrap: wrap;
    gap: 1.5rem;
    margin-top: 2rem;
}

/* Layout: row (default) — inline wrap */
.boost-cta__features--row {
    flex-direction: row;
}

/* Layout: column — vertical stack, larger items */
.boost-cta__features--column {
    flex-direction: column;
    gap: 1rem;
}

/* Layout: grid — 2 columns */
.boost-cta__features--grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
}

.boost-cta--layout-centered .boost-cta__features {
    justify-content: center;
}

.boost-cta--layout-centered .boost-cta__features--column {
    align-items: center;
}

.boost-cta--layout-right .boost-cta__features {
    justify-content: flex-end;
}

.boost-cta__feature {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.9rem;
    color: var(--boost-text-muted);
}

.boost-cta__feature-icon {
    flex-shrink: 0;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Styled icons from CPT - limit size in feature context */
.boost-cta__feature-icon .boost-styled-icon {
    --icon-container-size: 24px !important;
    --icon-size: 12px !important;
    width: 24px !important;
    height: 24px !important;
}

.boost-cta__feature-icon .boost-styled-icon svg {
    width: var(--icon-size, 12px) !important;
    height: var(--icon-size, 12px) !important;
}

.boost-cta__feature-icon svg {
    width: 14px;
    height: 14px;
    stroke: currentColor;
    stroke-width: 2;
    fill: none;
}

/* =============================================================================
   IMAGE / MEDIA
   ============================================================================= */

.boost-cta__image {
    overflow: hidden;
    border-radius: 16px;
}

.boost-cta--layout-centered .boost-cta__image {
    margin-top: 3rem;
    display: flex;
    justify-content: center;
}

/* Image above: margin-bottom instead of margin-top */
.boost-cta--layout-centered .boost-cta__image--above {
    margin-top: 0;
    margin-bottom: 2rem;
}

.boost-cta__image img {
    width: 100%;
    height: auto;
    display: block;
    border-radius: 16px;
    box-shadow: 0 25px 50px rgba(0,0,0,0.2);
}

.boost-cta--layout-centered .boost-cta__image img {
    max-width: 500px;
}

/* =============================================================================
   RESPONSIVE
   ============================================================================= */

@media (max-width: 768px) {
    .boost-cta {
        padding-left: 1rem !important;
        padding-right: 1rem !important;
    }
    
    .boost-cta__grid {
        grid-template-columns: 1fr !important;
        gap: 2rem;
    }
    
    .boost-cta__content {
        text-align: center !important;
        order: 2 !important;
    }
    
    .boost-cta__image {
        order: 1 !important;
        justify-content: center;
    }
    
    .boost-cta__buttons {
        justify-content: center !important;
        flex-direction: column;
        align-items: center;
    }
    
    .boost-cta .boost-btn {
        width: 100%;
        max-width: 280px;
        justify-content: center;
    }
    
    .boost-cta__features {
        justify-content: center !important;
    }
    
    .boost-cta__features--grid {
        grid-template-columns: 1fr;
    }
}

/* =============================================================================
   SUBTITLE — supports rich text (lists, bold, links via boost_rich)
   ============================================================================= */

.boost-cta__subtitle ul,
.boost-cta__subtitle ol {
    margin: 0.5rem 0;
    padding-left: 1.5rem;
    text-align: left;
}

.boost-cta__subtitle li {
    margin-bottom: 0.25rem;
}

/* =============================================================================
   ACCESSIBILITY
   Button focus/reduced-motion handled by standard .boost-btn component
   ============================================================================= */
/* =============================================================================
   VIDEO EMBED
   ============================================================================= */

.boost-cta__video-wrap {
    position: relative;
    padding-top: 56.25%; /* 16:9 */
    border-radius: var(--boost-radius, 12px);
    overflow: hidden;
    background: #000;
}

.boost-cta__video-wrap iframe,
.boost-cta__video-wrap video {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    border: none;
}

/* =============================================================================
   OVERLAY: Backdrop Mega-Text + Handwritten Annotation
   (shared with hero — loaded per block that uses overlay)
   ============================================================================= */

.boost-overlay-backdrop {
    position: absolute;
    pointer-events: none;
    z-index: 0;
    font-size: clamp(5rem, 15vw, 14rem);
    font-weight: 900;
    line-height: 1;
    white-space: nowrap;
    overflow: hidden;
    opacity: .06;
    color: var(--boost-text, #1e293b);
    letter-spacing: -.02em;
    max-width: 100%;
    text-overflow: clip;
}

.boost-overlay-backdrop--bottom-left { bottom: 0; left: 0; }
.boost-overlay-backdrop--bottom-right { bottom: 0; right: 0; text-align: right; }
.boost-overlay-backdrop--top-left { top: 0; left: 0; }
.boost-overlay-backdrop--top-right { top: 0; right: 0; text-align: right; }
.boost-overlay-backdrop--center { top: 50%; left: 50%; transform: translate(-50%, -50%); text-align: center; }

[data-scheme="dark"] .boost-overlay-backdrop { color: var(--boost-text, #f8fafc); }

.boost-overlay-annotation {
    position: absolute;
    pointer-events: none;
    z-index: 1;
    font-family: "Caveat", cursive;
    font-size: clamp(1rem, 2.5vw, 1.5rem);
    color: var(--boost-accent, #6366f1);
    opacity: .85;
    line-height: 1.4;
    max-width: 220px;
    transform: rotate(-3deg);
}

.boost-overlay-annotation--left { left: 1rem; top: 50%; transform: translateY(-50%) rotate(-5deg); }
.boost-overlay-annotation--right { right: 1rem; top: 50%; transform: translateY(-50%) rotate(3deg); }
.boost-overlay-annotation--top-right { right: 2rem; top: 1rem; transform: rotate(2deg); }
.boost-overlay-annotation--bottom-left { left: 2rem; bottom: 1.5rem; transform: rotate(-4deg); }

@media (max-width: 768px) {
    .boost-overlay-backdrop { font-size: clamp(3rem, 12vw, 8rem); }
    .boost-overlay-annotation { font-size: 1rem; max-width: 160px; }
    .boost-overlay-annotation--left, .boost-overlay-annotation--right { position: relative; left: auto; right: auto; top: auto; transform: rotate(-2deg); margin: 1rem auto; text-align: center; }
}
