/*
Theme Name: Frost Child - Homestay
Theme URI: http://example.com/
Description: Child theme for Frost theme, customizations for Homestay site
Author: Mehran
Author URI: http://example.com/
Template: frost
Version: 1.0
Text Domain: frost-child-homestay
*/

.my-header {
  position: absolute;
  left: 0;
  right: 0;
  top: 0;
  z-index: 50;
  transform: translateY(-120%);
  transition: transform 260ms ease, opacity 260ms ease;
  opacity: 0;
}

.my-header.visible {
  position: fixed;
  transform: translateY(0);
  opacity: 1;
}

body.has-cover-header .site-header-placeholder {
  height: 0;
}

body.home .hero-fixed-bg {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100vh;
  background-size: cover;
  background-position: center center;
  z-index: 0;
  pointer-events: none;
}

body.home.has-hero-fixed-bg .my-header {
  z-index: 60;
}

body.home.has-hero-fixed-bg .wp-block-cover.my-hero-cover + * {
  position: relative;
  z-index: 3;
}

body.has-hero-fixed-bg .wp-block-cover.my-hero-cover,
body.has-hero-fixed-bg
  .wp-block-cover.my-hero-cover
  .wp-block-cover__inner-container {
  position: relative;
  z-index: 2;
}

body.has-hero-fixed-bg .wp-block-cover.my-hero-cover ~ * {
  position: relative;
  z-index: 3;
}

.hero-fixed-bg {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100vh;
  background-size: cover;
  background-position: center center;
  z-index: -2;
  pointer-events: none;
}

.wp-block-cover.hero-bg-hidden .wp-block-cover__image-background,
.wp-block-cover.hero-bg-hidden img {
  opacity: 0;
  visibility: hidden;
}

.my-hero-title {
  font-weight: 150;
  opacity: 0;
  transition: opacity 200ms ease;
}

@media (max-width: 768px) {
  .my-header {
    display: none;
    visibility: hidden;
    pointer-events: none;
  }
}

.scroll-to-top {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  border: 2px solid #999999;
  background: transparent;
  color: #999999;
  font-size: 1.5rem;
  cursor: pointer;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
  z-index: 1000;
}

.scroll-to-top.visible {
  opacity: 0.9;
  pointer-events: auto;
}

.scroll-to-top:hover {
  opacity: 1;
  transform: translateY(-2px);
}

.my-footer {
  z-index: 10;
}
