/*
Theme Name: Elementra Child Theme
Theme URI: https://elementra.themerex.net/
Description: Elementra is a Premium WordPress theme that has built-in support for popular Page Builders, slider with swipe gestures, and is SEO- and Retina-ready. The unique system of inheritance and override options allows setting up individual parameters for different sections of your site and supported plugins.
Author: ThemeREX
Author URI: https://themerex.net/
Version: 1.1.1
Tested up to: 6.9
Requires at least: 5.5
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Tags: blog, e-commerce, portfolio, grid-layout, one-column, two-columns, three-columns, four-columns, left-sidebar, right-sidebar, custom-background, custom-colors, custom-header, custom-logo, custom-menu, editor-style, featured-image-header, featured-images, flexible-header, footer-widgets, full-width-template, microformats, post-formats, sticky-post, theme-options, threaded-comments, translation-ready, block-styles, wide-blocks
Text Domain: elementra
Template: elementra
*/


/* =Child-Theme customization starts here
------------------------------------------------------------ */
:root {
  --intro-bg:           #ECE6E0;
  --intro-panel-bg:     #ECE6E0;
  --intro-hint:         rgba(42, 42, 42, 0.85);
  --intro-tagline-gap:  48px;
  --intro-hint-size:    17px;
  --intro-hint-spacing: 0.25em;
  --intro-hint-bottom:  44px;
  --intro-transition:   1.2s cubic-bezier(0.76, 0, 0.24, 1);
  --intro-hint-delay: 0.3s;
}

#intro-overlay {
  position: fixed;
  inset: 0;
  z-index: 9999;
  cursor: none;
  background: var(--intro-bg);
  display: flex;
  align-items: center;
  justify-content: center;
}

#intro-overlay.is-open {
  background: transparent;
}

.intro-panel {
  position: fixed;
  width: 50%;
  height: 100%;
  top: 0;
  overflow: hidden;
  transition: transform var(--intro-transition);
  z-index: 2;
}

.intro-left  { left: 0; }
.intro-right { right: 0; }

.intro-panel-color {
  position: absolute;
  inset: 0;
  background-color: var(--intro-panel-bg);
  z-index: 1;
}

.intro-panel-marble {
  position: absolute;
  top: 0;
  width: 100vw;
  height: 100%;
  background-image: url('https://brilosa-living.si/assets/marble.jpg');
  background-size: 100vw 100vh;
  background-repeat: no-repeat;
  opacity: 0.2;
  mix-blend-mode: multiply;
  z-index: 1;
  pointer-events: none;
}

.intro-left .intro-panel-marble {
  left: 0;
  background-position: left top;
}

.intro-right .intro-panel-marble {
  right: 0;
  left: auto;
  background-position: right top;
}

.intro-panel-bg {
  position: absolute;
  top: 0;
  width: 100vw;
  height: 100%;
  background-image: url('https://brilosa-living.si/assets/b-lines.png');
  background-size: 100vw 100vh;
  background-repeat: no-repeat;
  opacity: 0.1;
  z-index: 2;
}

.intro-left .intro-panel-bg {
  left: 0;
  background-position: left top;
}

.intro-right .intro-panel-bg {
  right: 0;
  left: auto;
  background-position: right top;
}

#intro-overlay.is-open .intro-left  { transform: translateX(-100%); }
#intro-overlay.is-open .intro-right { transform: translateX(100%); }

.intro-content {
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  z-index: 3;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

/* SVG animacija */
.intro-svg-wrap {
  width: 90px;
  margin-bottom: 100px;
  opacity: 0;
}

.intro-svg-wrap svg path {
  fill: transparent;
  stroke: #7D4047;
  stroke-width: 3;
  stroke-dasharray: 1;
  stroke-dashoffset: 1;
}

.intro-svg-wrap.animate {
  opacity: 1;
}

.intro-svg-wrap.animate svg path:nth-child(1) {
  animation: svgDraw 1.2s linear forwards 0.1s;
}

.intro-svg-wrap.animate svg path:nth-child(2) {
  animation: svgDraw 1.2s linear forwards 0.3s;
}

@keyframes svgDraw {
  0%   { stroke-dashoffset: 1; fill: transparent; }
  70%  { stroke-dashoffset: 0; fill: transparent; }
  100% { stroke-dashoffset: 0; fill: #7D4047; }
}

/* Logo besedilo */
.intro-logo {
  display: flex;
  flex-direction: row;
  align-items: flex-end;
  justify-content: center;
  gap: 1.2em;
  padding-bottom: 0.1em;
}

.intro-word-wrap {
  display: block;
  padding: 0.2em 0;
}

.intro-word {
  font-family: 'Romilie', serif;
  font-size: clamp(48px, 9vw, 110px);
  font-weight: 700;
  letter-spacing: 0.05em;
  color: #7D4047;
  text-transform: uppercase;
  display: block;
  transform: translateY(40px);
  opacity: 0;
  transition: transform 1.4s cubic-bezier(0.16, 1, 0.3, 1), opacity 1s ease;
}

.intro-word.visible {
  transform: translateY(0);
  opacity: 1;
}

/* Tagline */
.intro-tagline-wrap {
  margin-top: var(--intro-tagline-gap);
}

.intro-tagline {
  font-family: 'Romilie', serif;
  font-style: italic;
  font-size: clamp(18px, 2.5vw, 32px);
  font-weight: 900;
  letter-spacing: 0.08em;
  color: #3D2B2B;
  display: block;
  transform: translateY(20px);
  opacity: 0;
  transition: transform 1.4s cubic-bezier(0.16, 1, 0.3, 1), opacity 1s ease;
  white-space: nowrap;
  padding-top: 35px;
}

.intro-tagline.visible {
  transform: translateY(0);
  opacity: 1;
}

/* Hint */
.intro-hint {
  position: fixed;
  bottom: var(--intro-hint-bottom);
  left: 50%;
  transform: translateX(-50%);
  font-size: var(--intro-hint-size);
  font-family: 'Romilie', serif;
  letter-spacing: var(--intro-hint-spacing);
  color: var(--intro-hint);
  text-transform: uppercase;
  opacity: 0;
  animation: introHintPulse 2s ease-in-out infinite var(--intro-hint-delay);
  pointer-events: none;
  z-index: 9999;
  white-space: nowrap;
}

#intro-overlay.is-open .intro-content {
  opacity: 0;
  transition: opacity 0.3s ease;
}

#intro-overlay.is-open .intro-hint {
  opacity: 0 !important;
  animation: none !important;
}

#intro-overlay.is-hidden {
  display: none;
}

@keyframes introHintPulse {
  0%, 100% { opacity: 0.3; }
  50%       { opacity: 0.8; }
}

html.intro-active,
body.intro-active {
  overflow: hidden;
  height: 100%;
}

/*mobile*/

@media (max-width: 768px) {
  .intro-logo {
    flex-direction: column;
    gap: 0;
    align-items: center;
  }

  .intro-word-wrap {
    padding: 0.25em 0;
    line-height: 1;
  }

  .intro-word {
    font-size: clamp(40px, 14vw, 72px);
    line-height: 1;
  }

  .intro-tagline {
    font-size: clamp(15px, 4vw, 22px);
    white-space: normal;
    text-align: center;
    max-width: 80vw;
    font-weight: 900;
  }

  /* Panel pokriva cel zaslon na mobile */
  .intro-panel {
    width: 100%;
    height: 100%;
  }

  .intro-left {
    top: 0;
    left: 0;
    z-index: 2;
  }

  /* Desni panel postane spodnji */
  .intro-right {
    display: block;
    top: auto;
    bottom: 0;
    left: 0;
    right: auto;
    width: 100%;
    height: 50%;
    z-index: 2;
  }

  .intro-panel-bg,
  .intro-panel-marble {
    background-size: 100vw 100vh;
    background-position: center top;
    width: 100%;
  }

  .intro-right .intro-panel-bg {
    background-position: center bottom;
  }

  .intro-right .intro-panel-marble {
    background-position: center bottom;
  }

  /* Na mobile levi gre gor, desni gre dol */
  #intro-overlay.is-open .intro-left {
    transform: translateY(-100%);
  }

  #intro-overlay.is-open .intro-right {
    transform: translateY(100%);
  }

  .intro-hint {
    font-size: 13px;
    bottom: 32px;
  }

  .intro-svg-wrap {
    width: 50px;
    margin-bottom: 20px;
  }
}


/*button hover*/
.btn-arrow .elementor-button-text::after {
  content: ' →';
  display: inline-block;
  opacity: 0;
  transform: translateX(-8px);
  transition: opacity 0.3s ease, transform 0.3s ease;
}

.btn-arrow:hover .elementor-button-text::after {
  opacity: 1;
  transform: translateX(4px);
}

/*heading underline*/
/* Osnovna verzija — bež ozadje, bordo črtica */
.heading-underline .trx-addons-advanced-title {
  display: inline-block;
  position: relative;
}

.heading-underline .trx-addons-advanced-title::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 1px;
  background: #5A2228;
  transition: width 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  transition-delay: 0.5s;
}

.heading-underline.in-view .trx-addons-advanced-title::after {
  width: 100%;
}

.heading-underline {
  display: block;
  position: static;
}

.heading-underline::after {
  display: none;
}

/* Light verzija — temno ozadje, bež črtica */
.heading-underline-light .trx-addons-advanced-title {
  display: inline-block;
  position: relative;
}

.heading-underline-light .trx-addons-advanced-title::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 1px;
  background: #ECE6E0;
  transition: width 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  transition-delay: 0.5s;
}

.heading-underline-light.in-view .trx-addons-advanced-title::after {
  width: 100%;
}

.heading-underline-light {
  display: block;
  position: static;
}

.heading-underline-light::after {
  display: none;
}