/* 
Theme Name: Hello Elementor Child
Theme URI: https://github.com/elementor/hello-theme-child/
Description: Hello Elementor Child is a child theme of Hello Elementor, created by Elementor team
Author: Elementor Team
Author URI: https://elementor.com/
Template: hello-elementor
Version: 2.0.0
Text Domain: hello-elementor-child
License: GNU General Public License v3 or later.
License URI: https://www.gnu.org/licenses/gpl-3.0.html
Tags: flexible-header, custom-colors, custom-menu, custom-logo, editor-style, featured-images, rtl-language-support, threaded-comments, translation-ready
*/

/* Add your custom styles here */
.video-mobile {
	width: 100%;
    height: 112vw;
    background-image: url(https://ballingventilation.dk/wp-content/uploads/2025/11/Ventilation_medarbejder_balling.webp);
    background-position: center;
    background-repeat: no-repeat;
    background-size: cover;
}

.tilbud_menu a {
    border-radius: 12px !important;
    background: #10202E !important;
    height: 35px !important;
    line-height: 2px !important;
    padding: 15px 20px !important;
	margin-left: 10px !important;
}

/* --- MOBILE SLIDER TOP --- */
@media (max-width: 1024px) {
  /* Slider wrapper */
  #slider_top {
    position: relative;
    padding: 0;
    margin: 0;
    overflow: hidden;
    height: 30px;
	text-align:center;
  }

  /* Base state for each slide (hidden below, off screen) */
  #slider_top .slide_top_text {
    width: 100%;
    height: 100%;
    display: block;
    z-index: 1;

    -webkit-transition: transform 1s, opacity 1s;
    -moz-transition: transform 1s, opacity 1s;
    -ms-transition: transform 1s, opacity 1s;
    -o-transition: transform 1s, opacity 1s;
    transition: transform 1s, opacity 1s;

    margin-top: 5px;

    -webkit-transform: translateY(100%);
    -moz-transform: translateY(100%);
    -ms-transform: translateY(100%);
    -o-transform: translateY(100%);
    transform: translateY(100%);

    left: 0;
    top: 0;
    position: absolute;
    overflow: hidden;

    opacity: 0;
  }

  /* First slide is visible BEFORE JS initialization */
  #slider_top:not(.slider-top-initialized) .slide_top_text:first-child {
    -webkit-transform: translateY(0%);
    -moz-transform: translateY(0%);
    -ms-transform: translateY(0%);
    -o-transform: translateY(0%);
    transform: translateY(0%);

    z-index: 100;
    opacity: 1;
  }

  /* Slide that is leaving (moves up) */
  #slider_top .slide_top_text.is-leaving {
    -webkit-transform: translateY(-150%);
    -moz-transform: translateY(-150%);
    -ms-transform: translateY(-150%);
    -o-transform: translateY(-150%);
    transform: translateY(-150%);

    z-index: 100;
    opacity: 0 !important;
  }

  /* Active slide (visible in viewport) */
  #slider_top .slide_top_text.is-active {
    -webkit-transform: translateY(0%);
    -moz-transform: translateY(0%);
    -ms-transform: translateY(0%);
    -o-transform: translateY(0%);
    transform: translateY(0%);

    z-index: 100;
    opacity: 1 !important;
  }
}
@media (max-width: 767px) {
	.pum .pum-container.pum-responsive.pum-responsive-medium {
    width: 95%;
	}
	.tilbud_menu a {
    border-radius: 0 !important;
    background: #f2efec !important;
    height: auto !important;
    line-height: 1.7 !important;
    padding: 20px 10px !important;
}
}

/* Desktop: let Elementor handle layout normally */
@media (min-width: 1025px) {
  #slider_top .slide_top_text {
    position: static;
    transform: none;
    opacity: 1;
  }
}


#menu_top #mega-menu-wrap-menu-1:has(
  .mega-menu-grid.mega-toggle-on
) {
    border-bottom-left-radius: 0;
    border-bottom-right-radius: 0;
}

/* Smooth transform for the menu */
#menu_top {
    transition: transform 0.35s ease;
}

/* When smart sticky is active we add padding to body to avoid layout jump */
body.menu-top-fixed {
    padding-top: var(--menu-top-height, 0px);
}

/* Fixed position for the menu when sticky mode is enabled */
body.menu-top-fixed #menu_top {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 9999;
}

/* Menu visible (slide in from top) */
body.menu-top-fixed.menu-top-visible #menu_top {
    transform: translateY(0);
}

/* Menu hidden (slide up under the top edge) */
body.menu-top-fixed.menu-top-hidden #menu_top {
    transform: translateY(-100%);
}

