/**
 * NexGen Extensions CSS
 * Parallax sections, Sticky columns, Heading presets, Dynamic tag placeholders.
 */

/* ── Section Parallax ───────────────────────────────────────────────────── */
[data-nexgen-parallax] {
    background-size: cover;
    overflow: hidden;
    will-change: background-position;
}
[data-nexgen-parallax="fixed"] {
    background-attachment: fixed;
    background-size: cover;
}

/* ── Sticky Column ──────────────────────────────────────────────────────── */
/* Applied via JS — just ensure containing flex context works */
.elementor-column[data-nexgen-sticky="yes"] {
    align-self: flex-start;
}

/* ── Heading Presets ────────────────────────────────────────────────────── */
.nexgen-heading-preset-xlarge .elementor-heading-title {
    font-size: clamp(2.5rem, 6vw, 5rem);
    font-weight: 800;
    line-height: 1.1;
    letter-spacing: -.02em;
}
.nexgen-heading-preset-subtitle .elementor-heading-title {
    font-size: .9375rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: .12em;
    color: var(--nexgen-text-light, #6b7280);
}
.nexgen-heading-preset-bold .elementor-heading-title {
    font-weight: 900;
}
.nexgen-heading-preset-thin .elementor-heading-title {
    font-weight: 300;
}
.nexgen-heading-preset-decorated .elementor-heading-title {
    position: relative;
    display: inline-block;
    padding-bottom: 12px;
}
.nexgen-heading-preset-decorated .elementor-heading-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 48px;
    height: 3px;
    background: var(--nexgen-primary, #2563eb);
    border-radius: 2px;
}
.elementor-widget-heading.elementor-align-center .nexgen-heading-preset-decorated .elementor-heading-title::after {
    left: 50%;
    transform: translateX(-50%);
}
.elementor-widget-heading.elementor-align-right .nexgen-heading-preset-decorated .elementor-heading-title::after {
    left: auto;
    right: 0;
}

/* ── Custom CSS editor — Elementor editor only ──────────────────────────── */
.elementor-control-nexgen_custom_css textarea,
.elementor-control-nexgen_col_custom_css textarea {
    font-family: 'Courier New', monospace;
    font-size: 12px;
    background: #1e1e2e;
    color: #cdd6f4;
    border-radius: 4px;
}

/* ── Elementor Template WP Widget ───────────────────────────────────────── */
.widget_nexgen_elementor_template { overflow: hidden; }

/* ── Material Icons font utility ────────────────────────────────────────── */
.material-icons {
    font-family: 'Material Icons';
    font-weight: normal;
    font-style: normal;
    font-size: 24px;
    display: inline-block;
    line-height: 1;
    text-transform: none;
    letter-spacing: normal;
    word-wrap: normal;
    white-space: nowrap;
    direction: ltr;
    -webkit-font-smoothing: antialiased;
}
