/*
Theme Name: Bizibl Child
Theme URI: https://bizibl.online/
Author: Bizibl Online
Author URI: https://bizibl.online/
Description: Child theme for Bizibl Theme - customize your site without modifying the parent theme.
Version: 1.0.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: bizibl-child
Template: bizibl
*/

/* ==========================================================================
   Child Theme Customizations
   ==========================================================================

   Add your custom styles below. These will override the parent theme styles.

   You can use the Bizibl design system variables:

   Colors:
   - var(--bizibl-color-primary)    → Primary brand color
   - var(--bizibl-color-secondary)  → Secondary color
   - var(--bizibl-color-text)       → Body text color
   - var(--bizibl-color-accent)     → Accent/link color
   - var(--bizibl-color-background) → Background color
   - var(--bizibl-color-light)      → Light background
   - var(--bizibl-color-border)     → Border color
   - var(--bizibl-color-muted)      → Muted text

   Typography:
   - var(--bizibl-font-primary)     → Heading font
   - var(--bizibl-font-text)        → Body text font
   - var(--bizibl-text-xs) to var(--bizibl-text-5xl) → Font sizes

   Spacing:
   - var(--bizibl-space-xs) to var(--bizibl-space-3xl) → Spacing scale

   Other:
   - var(--bizibl-radius-sm) to var(--bizibl-radius-xl) → Border radius
   - var(--bizibl-shadow-sm) to var(--bizibl-shadow-xl) → Shadows
   - var(--bizibl-transition-fast/normal/slow) → Transitions

   ========================================================================== */

/* ==========================================================================
   Elementor Design Token Aliases
   Normalizes opaque Elementor-generated variable IDs to readable names.
   Fallback chain: Elementor preset → Elementor global base → hard value.
   Update ONLY this block when Elementor regenerates preset IDs.
   ========================================================================== */

body {
    /* ==========================================================================
       Bizibl Semantic Aliases — synced with _elementor-globals.scss in parent theme.
       Must live on body (not :root) — Elementor scopes all --e-global-* to body.
       ========================================================================== */

    /* --- Colors --- */
    --bizibl-color-primary:     var(--e-global-color-primary,    #F5ECDF);
    --bizibl-color-secondary:   var(--e-global-color-secondary,  #F5ECDF);
    --bizibl-color-text:        var(--e-global-color-text,       #F5ECDF);
    --bizibl-color-accent:      var(--e-global-color-accent,     #085F67);
    --bizibl-color-warm-gray:   var(--e-global-color-f891f74,    #D6CCC2);
    --bizibl-color-dark-teal:   var(--e-global-color-2366cf8,   #034E54);
    --bizibl-color-blush:       var(--e-global-color-2510bd8,   #CF9595);

    /* --- Body / paragraph typography ("text" preset) --- */
    --bizibl-body-family:   var(--e-global-typography-text-font-family,    'Inter', sans-serif);
    --bizibl-body-size:     var(--e-global-typography-text-font-size,      1rem);
    --bizibl-body-weight:   var(--e-global-typography-text-font-weight,    400);
    --bizibl-body-line:     var(--e-global-typography-text-line-height,    1.7);
    --bizibl-body-spacing:  var(--e-global-typography-text-letter-spacing, normal);

    /* --- UI / subheading ("secondary" preset — Inter 18px 500) --- */
    --bizibl-ui-family:   var(--e-global-typography-secondary-font-family,  'Inter', sans-serif);
    --bizibl-ui-size:     var(--e-global-typography-secondary-font-size,    1.125rem);
    --bizibl-ui-weight:   var(--e-global-typography-secondary-font-weight,  500);
    --bizibl-ui-line:     var(--e-global-typography-secondary-line-height,  1.3);

    /* --- CTA / button ("accent" preset — Inter 18px 700 uppercase) --- */
    --bizibl-cta-family:  var(--e-global-typography-accent-font-family,  'Inter', sans-serif);
    --bizibl-cta-size:    var(--e-global-typography-accent-font-size,    0.875rem);
    --bizibl-cta-weight:  var(--e-global-typography-accent-font-weight,  700);

    /* --- Heading ("primary" preset — Melodrama 24px) --- */
    --bizibl-heading-family:  var(--e-global-typography-primary-font-family,  'Melodrama-Regular', sans-serif);
    --bizibl-heading-size:    var(--e-global-typography-primary-font-size,    1.5rem);
    --bizibl-heading-weight:  var(--e-global-typography-primary-font-weight,  400);
    --bizibl-heading-line:    var(--e-global-typography-primary-line-height,  1.25);

    /* --- Display presets (opaque Elementor IDs → semantic names) --- */
    /* display (f044238) — Melodrama 64px — page section h2 */
    --bizibl-display-family:  var(--e-global-typography-f044238-font-family,  var(--e-global-typography-primary-font-family,  'Melodrama-Regular', sans-serif));
    --bizibl-display-size:    var(--e-global-typography-f044238-font-size,    64px);
    --bizibl-display-weight:  var(--e-global-typography-f044238-font-weight,  400);
    --bizibl-display-line:    var(--e-global-typography-f044238-line-height,  1.2em);
    --bizibl-display-spacing: var(--e-global-typography-f044238-word-spacing, -1px);

    /* h3 (d26d305) — Melodrama 32px */
    --bizibl-h3-family:  var(--e-global-typography-d26d305-font-family,  var(--e-global-typography-primary-font-family,  'Melodrama-Regular', sans-serif));
    --bizibl-h3-size:    var(--e-global-typography-d26d305-font-size,    32px);
    --bizibl-h3-weight:  var(--e-global-typography-d26d305-font-weight,  500);
    --bizibl-h3-line:    var(--e-global-typography-d26d305-line-height,  1.2em);

    /* h4 (ed6f97d) — Melodrama 24px */
    --bizibl-h4-family:  var(--e-global-typography-ed6f97d-font-family,  var(--e-global-typography-primary-font-family,  'Melodrama-Regular', sans-serif));
    --bizibl-h4-size:    var(--e-global-typography-ed6f97d-font-size,    24px);
    --bizibl-h4-weight:  var(--e-global-typography-ed6f97d-font-weight,  500);
}

/* ==========================================================================
   Complianz Cookie Document Styling
   ========================================================================== */

#cmplz-document {
    max-width: inherit !important;
    font-family: var(--bizibl-body-family, 'Inter', sans-serif) !important;
    font-size:   var(--bizibl-body-size,   1rem) !important;
    line-height: var(--bizibl-body-line,   1.7) !important;
    color:       var(--bizibl-color-text,  #F5ECDF) !important;
}

#cmplz-document p {
    font-family: var(--bizibl-body-family, 'Inter', sans-serif) !important;
    font-size:   var(--bizibl-body-size,   1rem) !important;
    color:       var(--bizibl-color-text,  #F5ECDF) !important;
}

/* Links match the Elementor kit global link color (secondary = cream),
   not accent. Accent (teal) on this dark site is for interactive UI only. */
#cmplz-document a,
#cmplz-document a:link,
#cmplz-document a:visited {
    color:           var(--bizibl-color-secondary, #F5ECDF) !important;
    text-decoration: underline !important;
}

#cmplz-document a:hover,
#cmplz-document a:focus {
    color:           var(--bizibl-color-warm-gray, #D6CCC2) !important;
    text-decoration: none !important;
}

#cmplz-document h2 {
    font-family:  var(--bizibl-display-family,  'Melodrama-Regular', sans-serif) !important;
    font-size:    var(--bizibl-display-size,    2.25rem) !important;
    font-weight:  var(--bizibl-display-weight,  400) !important;
    line-height:  var(--bizibl-display-line,    1.2em) !important;
    word-spacing: var(--bizibl-display-spacing, -1px) !important;
    color:        var(--bizibl-color-text, #F5ECDF) !important;
    margin: var(--space-lg, 3rem) 0 !important;
}

#cmplz-document h3 {
    font-family:  var(--bizibl-h3-family,  'Melodrama-Regular', sans-serif) !important;
    font-size:    var(--bizibl-h3-size,    1.75rem) !important;
    font-weight:  var(--bizibl-h3-weight,  500) !important;
    line-height:  var(--bizibl-h3-line,    1.2em) !important;
    color:        var(--bizibl-color-text, #F5ECDF) !important;
    margin: var(--space-md, 2rem) 0 var(--space-sm, 1rem) !important;
    padding: unset !important;
}

#cmplz-document h4,
#cmplz-document .cmplz-category-title {
    font-family:  var(--bizibl-h4-family,  'Melodrama-Regular', sans-serif) !important;
    font-size:    var(--bizibl-h4-size,    1.25rem) !important;
    font-weight:  var(--bizibl-h4-weight,  500) !important;
    color:        var(--bizibl-color-text, #F5ECDF) !important;
    margin: var(--space-sm, 1rem) 0 !important;
    padding: unset !important;
}

#cmplz-document h5,
#cmplz-document .cmplz-subtitle {
    font-family:  var(--bizibl-h4-family,  'Melodrama-Regular', sans-serif) !important;
    font-size:    var(--bizibl-h4-size,    1.25rem) !important;
    font-weight:  var(--bizibl-h4-weight,  500) !important;
    color:        var(--bizibl-color-text, #F5ECDF) !important;
    padding-bottom: var(--space-xs, 0.5rem) !important;
}

/* Dropdowns / service accordion — dark-teal background to fit site theme */
#cmplz-document details,
#cmplz-document .cmplz-dropdown {
    background-color: var(--bizibl-color-dark-teal, #034E54) !important;
    border-radius: var(--radius-md, 0.5rem) !important;
    margin: var(--space-sm, 1rem) 0 !important;
    padding: var(--space-sm, 1rem) var(--space-md, 1.5rem) !important;
    color: var(--bizibl-color-text, #F5ECDF) !important;
}

#cmplz-document summary {
    font-family: var(--bizibl-ui-family,  'Inter', sans-serif) !important;
    font-size:   var(--bizibl-body-size,  1rem) !important;
    font-weight: var(--bizibl-ui-weight,  500) !important;
    color:       var(--bizibl-color-text, #F5ECDF) !important;
    cursor: pointer !important;
}

#cmplz-document details .cmplz-description,
#cmplz-document details .cookies-per-purpose {
    margin: var(--space-sm, 1rem) 0 !important;
}

#cmplz-document ul,
.editor-styles-wrapper .cmplz-unlinked-mode ul {
    margin-left: var(--space-md, 1.5rem) !important;
    margin-bottom: var(--space-md, 1.5rem) !important;
}

#cmplz-manage-consent .cmplz-manage-consent {
    display: none !important;
}

/* ==========================================================================
   Complianz dropdown internals — neutralize document.min.css overrides
   These rules defeat Complianz's forced 14px font, grey backgrounds,
   white cell backgrounds, and borders that break the dark-teal theme.
   ========================================================================== */

/* Summary row — remove Complianz grey background */
#cmplz-document .cmplz-dropdown summary,
#cmplz-cookies-overview .cmplz-dropdown summary {
    background-color: transparent !important;
    margin: 0 !important;
    padding: var(--space-xs, 0.5rem) 0 !important;
    border: none !important;
}

/* All text inside dropdowns — use body size, not Complianz's forced 14px */
#cmplz-document .cmplz-dropdown p,
#cmplz-document .cmplz-dropdown a,
#cmplz-document .cmplz-dropdown li,
#cmplz-cookies-overview .cmplz-dropdown p,
#cmplz-cookies-overview .cmplz-dropdown a {
    font-size:   var(--bizibl-body-size, 1rem) !important;
    font-family: var(--bizibl-body-family, 'Inter', sans-serif) !important;
    color:       var(--bizibl-color-text, #F5ECDF) !important;
    padding: 0 !important;
}

/* Summary <p> (category label on the right) — keep compact but readable */
#cmplz-document .cmplz-dropdown summary p,
#cmplz-cookies-overview .cmplz-dropdown summary p {
    font-size:   var(--bizibl-body-size, 1rem) !important;
    color:       var(--bizibl-color-warm-gray, #D6CCC2) !important;
    border-bottom: none !important;
}

/* Summary h3 — service name */
#cmplz-document .cmplz-dropdown summary h3,
#cmplz-cookies-overview .cmplz-dropdown summary h3 {
    font-size:   var(--bizibl-ui-size, 1.125rem) !important;
    font-family: var(--bizibl-ui-family, 'Inter', sans-serif) !important;
    font-weight: var(--bizibl-ui-weight, 500) !important;
    color:       var(--bizibl-color-text, #F5ECDF) !important;
    border-bottom: none !important;
    padding: 0 !important;
}

/* Dropdown h4 headings ("Utilizare", "Partajarea datelor") */
#cmplz-document .cmplz-dropdown h4,
#cmplz-cookies-overview .cmplz-dropdown h4 {
    font-size:   var(--bizibl-body-size, 1rem) !important;
    font-family: var(--bizibl-ui-family, 'Inter', sans-serif) !important;
    font-weight: var(--bizibl-ui-weight, 500) !important;
    color:       var(--bizibl-color-text, #F5ECDF) !important;
    margin: var(--space-sm, 1rem) 0 0.25rem !important;
    text-transform: none !important;
    border: none !important;
}

/* Cookies grid — remove Complianz border and grey background */
#cmplz-document .cmplz-dropdown .cookies-per-purpose,
#cmplz-cookies-overview .cmplz-dropdown .cookies-per-purpose {
    border: none !important;
    background-color: transparent !important;
    gap: 0 !important;
}

/* Grid cells — transparent, no white flash */
#cmplz-document .cmplz-dropdown .cookies-per-purpose div,
#cmplz-cookies-overview .cmplz-dropdown .cookies-per-purpose div {
    background-color: transparent !important;
    padding: var(--space-xs, 0.5rem) 0 !important;
    border: none !important;
    color: var(--bizibl-color-text, #F5ECDF) !important;
}

/* ==========================================================================
   Complianz Cookie Banner Styling
   ========================================================================== */

.cmplz-cookiebanner .cmplz-header .cmplz-title {
    font-family: var(--bizibl-heading-family, 'Melodrama-Regular', sans-serif) !important;
    font-size:   var(--bizibl-heading-size,   1.5rem) !important;
    font-weight: var(--bizibl-heading-weight, 400) !important;
}

.cmplz-cookiebanner .cmplz-buttons .cmplz-btn {
    font-family: var(--bizibl-cta-family, 'Inter', sans-serif) !important;
    font-size:   var(--bizibl-cta-size,   0.875rem) !important;
}

.cmplz-cookiebanner .cmplz-buttons .cmplz-btn.cmplz-accept {
    background-color: var(--bizibl-color-accent, #085F67) !important;
    color: var(--bizibl-color-primary, #F5ECDF) !important;
}

.cmplz-cookiebanner .cmplz-link {
    color: var(--bizibl-color-secondary, #F5ECDF) !important;
}

/* ==========================================================================
   Custom Elementor Styles
   ========================================================================== */

/* Footer Menu Links */
.footer-menu .elementor-nav-menu a {
    display: initial !important;
    width: 100% !important;
}

/* Form Messages */
.elementor-message[role='alert']::before {
    content: '' !important;
    display: none !important;
}

/* Form Field Alignment */
div.elementor-field-group.elementor-column {
    align-items: flex-start !important;
}

/* ==========================================================================
   Add Your Custom Styles Below
   ========================================================================== */

