/*
Theme Name: Astra - (Baltbrand theme)
Theme URI: https://mupla.net
Description: Baltbrand theme
Author: Elvis Loksts
Author URI: https://www.facebook.com/elvis.loksts
Template: astra
Version: 2.3.8
Text Domain: astra-child
*/

/* Style part */
.top-contact-bar{
    display:flex;
    justify-content:center;
    align-items:center;
    gap:70px;
    padding: 0px 0px 12px 0px;
    font-family:'Play', sans-serif;
}

.top-contact-item{
    display:flex;
    align-items:center;
    gap:12px;
    text-decoration:none;
    color:#ffffff;
    font-size:15px;
    font-weight:400;
    line-height:1;
    transition:.2s;
}

.top-contact-item i{
    color:#ff8c00;
    font-size:16px;
    line-height:1;
    position:relative;
    top:7px;
}

.top-contact-item:hover{
    color:#FD9800!important;
}

.top-contact-item:hover i{
    color:#ff8c00;
}


.widget {
    margin: 0 0 1em 0;
}

.wp-block-spectra-container .wp-block-image {
  overflow: hidden !important;
}

.wp-block-spectra-container .wp-block-image img {
  display: block;
  width: 100%;
  transition: transform 0.8s ease-in-out;
  transform: rotate(0deg) scale(1);
}

.wp-block-spectra-container .wp-block-image:hover img {
  transform: rotate(3deg) scale(1.08);
}








/* DESKTOP: prepare hero for video and prevent image flash */
@media (min-width: 922px) {
  .wp-block-spectra-container[data-spectra-id="de13c167"] {
    position: relative !important;
    overflow: hidden !important;
    background-color: #000 !important;
    background-image: none !important;
  }

  .wp-block-spectra-container[data-spectra-id="de13c167"] .bb-video-bg {
    position: absolute !important;
    inset: 0 !important;
    z-index: 0 !important;
    overflow: hidden !important;
    pointer-events: none !important;
  }

  .wp-block-spectra-container[data-spectra-id="de13c167"] .bb-video-bg iframe {
    position: absolute !important;
    top: 50% !important;
    left: 50% !important;
    width: 120vw !important;
    height: 67.5vw !important;
    min-width: 177.78vh !important;
    min-height: 100vh !important;
    transform: translate(-50%, -50%) !important;
    border: 0 !important;
  }

  .wp-block-spectra-container[data-spectra-id="de13c167"] > *:not(.bb-video-bg) {
    position: relative !important;
    z-index: 2 !important;
  }

  .wp-block-spectra-container[data-spectra-id="de13c167"]::before {
    content: "" !important;
    position: absolute !important;
    inset: 0 !important;
    z-index: 1 !important;
    background: rgba(0, 0, 0, 0.85) !important;
    pointer-events: none !important;
  }
}

/* MOBILE/TABLET: completely untouched original Spectra/Astra image */
@media (max-width: 921px) {

  /* Hide only our injected video */
  .wp-block-spectra-container[data-spectra-id="de13c167"] .bb-video-bg {
    display: none !important;
  }

  /* Do NOT touch ::before.
     Let Spectra/Astra render the original image + overlay normally. */
}

/* Keep transparent header above video */
.ast-theme-transparent-header #masthead {
  z-index: 999 !important;
}

/* Optional readable header */
.ast-theme-transparent-header .main-header-bar,
.ast-theme-transparent-header .ast-main-header-wrap .main-header-bar {
  background-color: rgba(37, 37, 37, 0.55) !important;
}

.wp-block-buttons {
  width: 100%;
  justify-content: center !important;
}

/* Custom button typography */
.wp-block-button .wp-block-button__link,
.wp-block-search .wp-block-search__button,
body .wp-block-file .wp-block-file__button {
    text-transform: none !important; /* Remove uppercase */
    font-family: "Play", sans-serif !important;
    font-weight: 400; /* Adjust as needed */
}

.main-header-menu .sub-menu {
    width: 240px;
    background: #00000000;
    left: -999em;
    position: absolute;
    top: 100%;
    z-index: 99999;
    visibility: hidden;
}

.ast-theme-transparent-header .ast-builder-menu .main-header-menu .menu-item .sub-menu .menu-link, .ast-theme-transparent-header .main-header-menu .menu-item .sub-menu .menu-link {
    background-color: #8989894d;
}