/*
 Theme Name:   Twenty Twenty-Four Child
 Theme URI:    https://example.com/twenty-twentyfour-child
 Description:  Child theme for the Twenty Twenty-Four theme
 Author:       Your Name
 Author URI:   https://example.com
 Template:     twentytwentyfour
 Version:      1.0.0
 License:      GNU General Public License v2 or later
 License URI:  https://www.gnu.org/licenses/gpl-2.0.html
 Text Domain:  twentytwentyfourchild
*/


/* COMMON */
a, a img, button {outline : none;}

/* MOBILE NAVIGATION LOGO STARTS */
/* Hide mobile overlay logo on desktop */
.wp-block-navigation .vb-logo-mobile-only {
  display: none;
}

/* Show it when overlay menu is open (mobile) */
.wp-block-navigation__responsive-container.is-menu-open .vb-logo-mobile-only {
  display: block;
  margin: 0 auto; /* centers it */
  text-align: center;
  padding-bottom: 10px;
}

/* MOBILE NAVIGATION LOGO ENDS */


/* NAVIGATION - CTA Button */

li.vb-book-now a{
	background: var(--wp--preset--color--primary-accent);
	color: var(--wp--preset--color--white) !important;
	font-size: 12px;
	font-weight: bold;
	letter-spacing: 2px;
	padding: 4px 20px !important;
	text-decoration: none;
	text-transform: uppercase;
	border-radius: 6px;
	-moz-border-radius: 6px;
	-webkit-border-radius: 6px;
	border: none;
	position: relative;
	display: inline-block;
	text-align: center;
	outline: 0;
	line-height: 1.8em;
    word-spacing: 0px;
}

li.vb-book-now a:hover {
  color: #fff;
  background: var(--wp--preset--color--dark-background);
}

li.vb-book-now a > span {
    transition: .5s;
    outline: none;
}

.vb-book-now > a span{
  display: block;
  position: relative;
  transition: all .3s ease-in-out;
}

.vb-book-now > a:hover span{
  transform: translate(0, 20px);
  opacity: 0;
}

.vb-book-now > a:hover:before {
  opacity: 1;
  transform: translate(0, 0);
}

.vb-book-now > a:before {
  content: 'Rezervišite'; /* attr(data-hover) */ 
  position: absolute;
  left: 0;
  width: 100%;
  opacity: 0;
  transform: translate(0, -100%);
  transition: all 0.3s ease-in-out;
}

/* NAVIGATION - CTA Button */

/* HEADER - Transition effect for smooth fade + slide */
main#wp--skip-link--target {
  margin-top: 0;
}

.vb-header {
  transition: transform .5s ease, background-color .5s ease;
}

body:not(.home) .vb-header {
    background-color: var(--wp--preset--color--dark-background);
}

/* Hidden state */
.vb-header.header-hidden {
  transform: translateY(-100%);
  background-color: var(--wp--preset--color--dark-background);
  pointer-events: none; /* optional: prevents interaction */
}

/* Visible state */
.vb-header.header-visible {
 /* REMOVE */
}
/* HEADER - Transition effect for smooth fade + slide */

/* Make the figure act like a background under the header */
.vb-header-background {
  position: relative;   /* Keep it in the flow */
  top: 0;
  left: 0;
  width: 100%;
  height: 100vh;        /* Full viewport height */

  overflow: hidden;
  z-index: 1;
  margin: 0;
}

.header-accent-background {
    background-color: var(--wp--preset--color--dark-background);
}

/* Hero background image */

/* Stretch and cover */
.vb-header-background img {
  width: 100%;
  height: 100% !important;
  object-fit: cover;
  display: block;
}

/* Header sits above the hero */
.vb-header {
  position: absolute;   /* Take out of flow and overlay */
  top: 0;
  left: 0;
  width: 100%;
  z-index: 10;
}

/* Hero background image gradient */
.gradient-edge-bottom {
  z-index: 2;
  position: absolute;
  bottom: 0;
  margin: 0;
  width: 100%;
  height: 30%;
  background: linear-gradient(0deg, rgba(var(--wp--preset--color--dark-background-rgb), 1) 0%, rgba(var(--wp--preset--color--dark-background-rgb), 0) 100%);
}

/* Hero image overlay */
.hero-image-overlay {
    position: absolute;
    width: 100%;
    height: 100%;
    left:0;
    top: 0;
    margin: 0;
    z-index: 3;
    opacity: .3;
    
}

.hero-image-overlay {
  background: -webkit-linear-gradient(0deg,rgba(var(--wp--preset--color--dark-background-rgb), .8) 0%, rgba(var(--wp--preset--color--dark-background-rgb), .8) 50%);
  background: -moz-linear-gradient(0deg,rgba(var(--wp--preset--color--dark-background-rgb), .8) 0%, rgba(var(--wp--preset--color--dark-background-rgb), .8) 50%);
  background: linear-gradient(0deg,rgba(var(--wp--preset--color--dark-background-rgb), .8) 0%, rgba(var(--wp--preset--color--dark-background-rgb), .8) 50%);
}

/* Hero background image */



@media (max-width: 599px) {
    .vb-header-background {
        height: auto;
    }
  .vb-header {
      position: relative;
  }
    .vb-header li:not(.vb-book-now)>a>span{
      color: var(--wp--preset--color--primary);
  }
      .vb-header div.is-menu-open li:not(.vb-book-now)>a>span{
      color: var(--wp--preset--color--secondary);
  }h
  .vb-header img.custom-logo {
      width: 160px;
  }
  .wp-block-navigation__responsive-container-open {
      color: var(--wp--preset--color--primary);
  }
  .wp-block-navigation__responsive-container ul {
    width: 100%
    }

    .wp-block-navigation__responsive-container ul > li {
    text-align: center;
      width: 100%;
      border-bottom: 1px solid var(--wp--preset--color--secondary);
      padding-bottom: 9px;
      align-items: flex-start !important;
    }

    .wp-block-navigation__responsive-container ul > li:first-child,
    .wp-block-navigation__responsive-container ul > li:last-child {
        border-bottom: none !important;
    }

    .wp-block-navigation__responsive-container ul > li > a {
        text-transform: uppercase;
    }
  .wp-block-navigation:not(.has-background) .wp-block-navigation__responsive-container.is-menu-open {
    background-color: var(--wp--preset--color--dark-background);
    color: var(--wp--preset--color--secondary) !important;
    }
    
    /** MOBILE LOGO */

    
    li.vb-book-now > a {
        width: 90%;
    }

}
