/**
 * VOSKA — Elementor Overrides
 * File: assets/css/elementor-overrides.css
 *
 * Loaded via: integrations/elementor.php
 * Hook:       elementor/frontend/after_enqueue_styles
 *
 * PURPOSE:
 *   This file is the single place for all CSS conflicts with Elementor.
 *   It loads AFTER all Elementor stylesheets, so even specificity-equal
 *   selectors here will win via source order.
 *
 *   Keep typography.css, buttons.css and layout.css clean — do NOT add
 *   Elementor-specific overrides there. Add them here instead.
 *
 * WHEN TO ADD A RULE HERE:
 *   - Elementor widget CSS overrides a VOSKA variable-driven style
 *   - Elementor uses !important and a normal class won't win
 *   - A widget resets a property (margin, padding, line-height) that
 *     VOSKA needs to control
 *
 * SPECIFICITY GUIDE:
 *   Elementor widget classes are typically 0,1,0 (one class).
 *
 *   DOM structure of Elementor Heading widget:
 *     <div class="elementor-element vsk-h1">   ← custom class lands HERE
 *       <div class="elementor-widget-container">
 *         <h2 class="elementor-heading-title"> ← Elementor class is HERE
 *         </h2>
 *       </div>
 *     </div>
 *
 *   Because .vsk-h* and .elementor-heading-title are NEVER on the same
 *   element, compound selectors like .elementor-heading-title.vsk-h1
 *   will never match. Use a descendant selector instead:
 *
 *     body .vsk-h1 .elementor-heading-title  →  0,2,1  ✓
 *
 *   For !important rules in Elementor, you need !important here too —
 *   document those cases with a comment explaining why.
 *
 * ─── SECTIONS ─────────────────────────────────────────────────────────────
 *   1. Heading widget
 *   2. Text Editor widget
 *   3. Button widget
 *   4. Icon / Icon Box widget
 *   5. Global resets
 */


/* ─────────────────────────────────────────────────────────────────────────────
   1. HEADING WIDGET
   .elementor-heading-title resets line-height: 1 and clears margin/padding.
   .vsk-h* is on the widget wrapper, .elementor-heading-title is on the inner
   tag — so we use a descendant selector (0,2,1) to reliably override (0,1,0).
───────────────────────────────────────────────────────────────────────────── */

body .vsk-h1 .elementor-heading-title {
    font-size:      var(--vsk-font--size-h1);
    line-height:    var(--vsk-font--lh-heading);
    letter-spacing: var(--vsk-font--ls-heading);
    font-weight:    var(--vsk-font--wgt-heading);
    font-family:    var(--vsk-font--family-heading);
}

body .vsk-h2 .elementor-heading-title {
    font-size:      var(--vsk-font--size-h2);
    line-height:    var(--vsk-font--lh-heading);
    letter-spacing: var(--vsk-font--ls-heading);
    font-weight:    var(--vsk-font--wgt-heading);
    font-family:    var(--vsk-font--family-heading);
}

body .vsk-h3 .elementor-heading-title {
    font-size:      var(--vsk-font--size-h3);
    line-height:    var(--vsk-font--lh-heading);
    letter-spacing: var(--vsk-font--ls-heading);
    font-weight:    var(--vsk-font--wgt-heading);
    font-family:    var(--vsk-font--family-heading);
}

body .vsk-h4 .elementor-heading-title {
    font-size:      var(--vsk-font--size-h4);
    line-height:    var(--vsk-font--lh-subheading);
    letter-spacing: var(--vsk-font--ls-subheading);
    font-weight:    var(--vsk-font--wgt-subheading);
    font-family:    var(--vsk-font--family-subheading);
}

body .vsk-h5 .elementor-heading-title {
    font-size:      var(--vsk-font--size-h5);
    line-height:    var(--vsk-font--lh-subheading);
    letter-spacing: var(--vsk-font--ls-subheading);
    font-weight:    var(--vsk-font--wgt-subheading);
    font-family:    var(--vsk-font--family-subheading);
}

body .vsk-h6 .elementor-heading-title {
    font-size:      var(--vsk-font--size-h6);
    line-height:    var(--vsk-font--lh-subheading);
    letter-spacing: var(--vsk-font--ls-subheading);
    font-weight:    var(--vsk-font--wgt-subheading);
    font-family:    var(--vsk-font--family-subheading);
}


body.wp-child-theme-voska{
	/* ═══════════════════════════════════════════════════════════════════
       H1  —  Elementor ID: 69ebd8a  →  VOSKA heading tokens
       ═══════════════════════════════════════════════════════════════════ */
    --e-global-typography-69ebd8a-font-family:        var(--vsk-font--family-heading);
    --e-global-typography-69ebd8a-font-size:          var(--vsk-font--size-h1);
    --e-global-typography-69ebd8a-font-weight:        var(--vsk-font--wgt-heading);
    --e-global-typography-69ebd8a-line-height:        var(--vsk-font--lh-heading);
    --e-global-typography-69ebd8a-letter-spacing:     var(--vsk-font--ls-heading);
    --e-global-typography-69ebd8a-text-transform:     uppercase;
    --e-global-typography-69ebd8a-font-style:         normal;
    --e-global-typography-69ebd8a-text-decoration:    none;
    --e-global-typography-69ebd8a-word-spacing:       normal;
 
    /* ═══════════════════════════════════════════════════════════════════
       H2  —  Elementor ID: 24b3e92  →  VOSKA heading tokens
       ═══════════════════════════════════════════════════════════════════ */
    --e-global-typography-24b3e92-font-family:      var(--vsk-font--family-heading);
    --e-global-typography-24b3e92-font-size:         var(--vsk-font--size-h2);
    --e-global-typography-24b3e92-font-weight:       var(--vsk-font--wgt-heading);
    --e-global-typography-24b3e92-line-height:        var(--vsk-font--lh-heading);
    --e-global-typography-24b3e92-letter-spacing:     var(--vsk-font--ls-heading);
    --e-global-typography-24b3e92-text-transform:     uppercase;
    --e-global-typography-24b3e92-font-style:         normal;
    --e-global-typography-24b3e92-text-decoration:    none;
    --e-global-typography-24b3e92-word-spacing:       normal;
 
    /* ═══════════════════════════════════════════════════════════════════
       H3  —  Elementor ID: 78f5bc5  →  VOSKA heading tokens
       ═══════════════════════════════════════════════════════════════════ */
    --e-global-typography-78f5bc5-font-family:      var(--vsk-font--family-heading);
    --e-global-typography-78f5bc5-font-size:         var(--vsk-font--size-h3);
    --e-global-typography-78f5bc5-font-weight:       var(--vsk-font--wgt-heading);
    --e-global-typography-78f5bc5-line-height:        var(--vsk-font--lh-heading);
    --e-global-typography-78f5bc5-letter-spacing:     var(--vsk-font--ls-heading);
    --e-global-typography-78f5bc5-text-transform:     uppercase;
    --e-global-typography-78f5bc5-font-style:         normal;
    --e-global-typography-78f5bc5-text-decoration:    none;
    --e-global-typography-78f5bc5-word-spacing:       normal;
 
    /* ═══════════════════════════════════════════════════════════════════
       H4  —  Elementor ID: feb3abe  →  VOSKA subheading tokens
       ═══════════════════════════════════════════════════════════════════ */
    --e-global-typography-feb3abe-font-family:      var(--vsk-font--family-subheading);
    --e-global-typography-feb3abe-font-size:         var(--vsk-font--size-h4);
    --e-global-typography-feb3abe-font-weight:       var(--vsk-font--wgt-subheading);
    --e-global-typography-feb3abe-line-height:        var(--vsk-font--lh-subheading);
    --e-global-typography-feb3abe-letter-spacing:     var(--vsk-font--ls-subheading);
    --e-global-typography-feb3abe-text-transform:     uppercase;
    --e-global-typography-feb3abe-font-style:         normal;
    --e-global-typography-feb3abe-text-decoration:    none;
    --e-global-typography-feb3abe-word-spacing:       normal;
 
    /* ═══════════════════════════════════════════════════════════════════
       H5  —  Elementor ID: b1b47f1  →  VOSKA subheading tokens
       ═══════════════════════════════════════════════════════════════════ */
    --e-global-typography-b1b47f1-font-family:      var(--vsk-font--family-subheading);
    --e-global-typography-b1b47f1-font-size:         var(--vsk-font--size-h5);
    --e-global-typography-b1b47f1-font-weight:       var(--vsk-font--wgt-subheading);
    --e-global-typography-b1b47f1-line-height:        var(--vsk-font--lh-subheading);
    --e-global-typography-b1b47f1-letter-spacing:     var(--vsk-font--ls-subheading);
    --e-global-typography-b1b47f1-text-transform:     uppercase;
    --e-global-typography-b1b47f1-font-style:         normal;
    --e-global-typography-b1b47f1-text-decoration:    none;
    --e-global-typography-b1b47f1-word-spacing:       normal;
 
    /* ═══════════════════════════════════════════════════════════════════
       H6  —  Elementor ID: 054d160  →  VOSKA subheading tokens
       ═══════════════════════════════════════════════════════════════════ */
    --e-global-typography-054d160-font-family:      var(--vsk-font--family-subheading);
    --e-global-typography-054d160-font-size:         var(--vsk-font--size-h6);
    --e-global-typography-054d160-font-weight:       var(--vsk-font--wgt-subheading);
    --e-global-typography-054d160-line-height:        var(--vsk-font--lh-subheading);
    --e-global-typography-054d160-letter-spacing:     var(--vsk-font--ls-subheading);
    --e-global-typography-054d160-text-transform:     uppercase;
    --e-global-typography-054d160-font-style:         normal;
    --e-global-typography-054d160-text-decoration:    none;
    --e-global-typography-054d160-word-spacing:       normal;
 
    /* ═══════════════════════════════════════════════════════════════════
       .vsk-p  (paragraph)  —  Elementor ID: text
       ═══════════════════════════════════════════════════════════════════ */
    --e-global-typography-text-font-family:      var(--vsk-font--family-text);
    --e-global-typography-text-font-size:         var(--vsk-font--size-text);
    --e-global-typography-text-font-weight:       var(--vsk-font--wgt-text);
    --e-global-typography-text-line-height:        var(--vsk-font--lh-text);
    --e-global-typography-text-letter-spacing:     var(--vsk-font--ls-text);
    --e-global-typography-text-text-transform:     none;
    --e-global-typography-text-font-style:         normal;
    --e-global-typography-text-text-decoration:    none;
    --e-global-typography-text-word-spacing:       normal;
 
    /* ═══════════════════════════════════════════════════════════════════
       .vsk-pb  (paragraph bold)  —  Elementor ID: c9aa78b
       ═══════════════════════════════════════════════════════════════════ */
    --e-global-typography-c9aa78b-font-family:      var(--vsk-font--family-text);
    --e-global-typography-c9aa78b-font-size:         var(--vsk-font--size-text);
    --e-global-typography-c9aa78b-font-weight:       var(--vsk-font--wgt-text-bold);
    --e-global-typography-c9aa78b-line-height:        var(--vsk-font--lh-text);
    --e-global-typography-c9aa78b-letter-spacing:     var(--vsk-font--ls-text);
    --e-global-typography-c9aa78b-text-transform:     none;
    --e-global-typography-c9aa78b-font-style:         normal;
    --e-global-typography-c9aa78b-text-decoration:    none;
    --e-global-typography-c9aa78b-word-spacing:       normal;
 
    /* ═══════════════════════════════════════════════════════════════════
       .vsk-pl  (paragraph large)  —  Elementor ID: 91623c8
       ═══════════════════════════════════════════════════════════════════ */
    --e-global-typography-91623c8-font-family:      var(--vsk-font--family-text);
    --e-global-typography-91623c8-font-size:         var(--vsk-font--size-text-l);
    --e-global-typography-91623c8-font-weight:       var(--vsk-font--wgt-text);
    --e-global-typography-91623c8-line-height:        var(--vsk-font--lh-text-l);
    --e-global-typography-91623c8-letter-spacing:     var(--vsk-font--ls-text);
    --e-global-typography-91623c8-text-transform:     none;
    --e-global-typography-91623c8-font-style:         normal;
    --e-global-typography-91623c8-text-decoration:    none;
    --e-global-typography-91623c8-word-spacing:       normal;
 
    /* ═══════════════════════════════════════════════════════════════════
       .vsk-plb  (paragraph large bold)  —  Elementor ID: 0128227
       ═══════════════════════════════════════════════════════════════════ */
    --e-global-typography-0128227-font-family:      var(--vsk-font--family-text);
    --e-global-typography-0128227-font-size:         var(--vsk-font--size-text-l);
    --e-global-typography-0128227-font-weight:       var(--vsk-font--wgt-text-bold);
    --e-global-typography-0128227-line-height:        var(--vsk-font--lh-text-l);
    --e-global-typography-0128227-letter-spacing:     var(--vsk-font--ls-text);
    --e-global-typography-0128227-text-transform:     none;
    --e-global-typography-0128227-font-style:         normal;
    --e-global-typography-0128227-text-decoration:    none;
    --e-global-typography-0128227-word-spacing:       normal;
 
    /* ═══════════════════════════════════════════════════════════════════
       .vsk-ps  (paragraph small)  —  Elementor ID: c839977
       ═══════════════════════════════════════════════════════════════════ */
    --e-global-typography-c839977-font-family:      var(--vsk-font--family-text);
    --e-global-typography-c839977-font-size:         var(--vsk-font--size-text-s);
    --e-global-typography-c839977-font-weight:       var(--vsk-font--wgt-text);
    --e-global-typography-c839977-line-height:        var(--vsk-font--lh-text-s);
    --e-global-typography-c839977-letter-spacing:     var(--vsk-font--ls-text);
    --e-global-typography-c839977-text-transform:     none;
    --e-global-typography-c839977-font-style:         normal;
    --e-global-typography-c839977-text-decoration:    none;
    --e-global-typography-c839977-word-spacing:       normal;
 
    /* ═══════════════════════════════════════════════════════════════════
       .vsk-psb  (paragraph small bold)  —  Elementor ID: 9bf8fc1
       ═══════════════════════════════════════════════════════════════════ */
    --e-global-typography-9bf8fc1-font-family:      var(--vsk-font--family-text);
    --e-global-typography-9bf8fc1-font-size:         var(--vsk-font--size-text-s);
    --e-global-typography-9bf8fc1-font-weight:       var(--vsk-font--wgt-text-bold);
    --e-global-typography-9bf8fc1-line-height:        var(--vsk-font--lh-text-s);
    --e-global-typography-9bf8fc1-letter-spacing:     var(--vsk-font--ls-text);
    --e-global-typography-9bf8fc1-text-transform:     none;
    --e-global-typography-9bf8fc1-font-style:         normal;
    --e-global-typography-9bf8fc1-text-decoration:    none;
    --e-global-typography-9bf8fc1-word-spacing:       normal;
 
    /* ═══════════════════════════════════════════════════════════════════
       .vsk-btn  (button)  —  Elementor ID: f6e9431
       ═══════════════════════════════════════════════════════════════════ */
    --e-global-typography-f6e9431-font-family:        var(--vsk-font--family-button);
    --e-global-typography-f6e9431-font-size:          var(--vsk-font--size-btn);
    --e-global-typography-f6e9431-font-weight:        var(--vsk-font--wgt-btn);
    --e-global-typography-f6e9431-line-height:        var(--vsk-font--lh-btn);
    --e-global-typography-f6e9431-letter-spacing:     var(--vsk-font--ls-btn);
    --e-global-typography-f6e9431-text-transform:     none;
    --e-global-typography-f6e9431-font-style:         normal;
    --e-global-typography-f6e9431-text-decoration:    none;
    --e-global-typography-f6e9431-word-spacing:       normal;
}


/* ─────────────────────────────────────────────────────────────────────────────
   2. TEXT EDITOR WIDGET
   .elementor-widget-text-editor resets typography on its inner container.
   Restore VOSKA text classes when applied inside this widget.
───────────────────────────────────────────────────────────────────────────── */

body .vsk-p {
    font-size:   var(--vsk-font--size-text);
    line-height: var(--vsk-font--lh-text);
    font-weight: var(--vsk-font--wgt-text);
    font-family: var(--vsk-font--family-text);
}

body .vsk-pl {
    font-size:   var(--vsk-font--size-text-l);
    line-height: var(--vsk-font--lh-text-l);
    font-weight: var(--vsk-font--wgt-text);
    font-family: var(--vsk-font--family-text);
}

body .vsk-ps {
    font-size:   var(--vsk-font--size-text-s);
    line-height: var(--vsk-font--lh-text-s);
    font-weight: var(--vsk-font--wgt-text);
    font-family: var(--vsk-font--family-text);
}


/* ─────────────────────────────────────────────────────────────────────────────
   3. BUTTON WIDGET
   Elementor's button widget: .vsk-btn is on the wrapper div,
   .elementor-button is on the inner <a>. Use descendant selector.
   buttons.css handles most styles — this catches Elementor-specific
   properties that still leak through (e.g. font-size from .elementor-size-*).
───────────────────────────────────────────────────────────────────────────── */

body.wp-child-theme-voska .vsk-btn > .elementor-button,
body.wp-child-theme-voska .vsk-btn.e-button-base{
    font-family:    	var(--vsk-font--family-button);
    font-size:      	var(--vsk-font--size-btn);
    font-weight:    	var(--vsk-font--wgt-btn);
    letter-spacing: 	var(--vsk-font--ls-btn);
    line-height:    	var(--vsk-font--lh-btn);
	text-transform:		var(--vsk-btn--text-transform);
    border-radius:		var(--vsk-btn--radius);
    border-width:		var(--vsk-bdr--wgt);
    border-style:		var(--vsk-bdr--style);
    border-color:		var(--_btn-border, transparent);
	background-color: 	var(--_btn-bg, transparent);
    color:            	var(--_btn-text, inherit);
}


/* ─────────────────────────────────────────────────────────────────────────────
   4. ICON / ICON BOX WIDGET
   Placeholder — add rules as conflicts are discovered per project.
───────────────────────────────────────────────────────────────────────────── */

/* body .vsk-h3 .elementor-icon-box-title { ... } */


/* ─────────────────────────────────────────────────────────────────────────────
   5. GLOBAL RESETS
   Catch-all for Elementor properties reset globally that affect VOSKA layout.
   Add here only when a rule cannot be scoped to a specific widget.
───────────────────────────────────────────────────────────────────────────── */
.wp-child-theme-voska .elementor-icon-wrapper{
    display: flex;
}

.wp-child-theme-voska .elementor-nav-menu a{
    position: relative;
    width: fit-content;
}

.wp-child-theme-voska .elementor-sticky{
	width: 100%!important;
}

.wp-child-theme-voska .e-atomic-element{
	padding: 0;
	min-width: 0;
}


/*
 * Elementor sometimes forces box-sizing: content-box on inner elements.
 * Restore border-box for any element carrying a VOSKA class.
 */
body [class*="vsk-"] {
    box-sizing: border-box;
}
