/*
Theme Name: Astra Child
Theme URI: wpastra.com
Description: Child theme for Astra
Author: Gretli Särel
Author URI: https://teenusedisainer.ee
Template: astra
Version: 1.0.0
*/

.ast-mobile-header-wrap .menu-toggle .mobile-menu-toggle-icon {
    position: fixed;
    right: 30px;
}

.site-footer {
z-index: 2;
}

.video-bg {
  width: 100%;
  height: 100vh;
  object-fit: cover;
  position: fixed; 
  top: 0;
  left: 0;
  z-index: 0; 
}


* {
  overflow-wrap: normal !important;
  word-break: normal !important;
  hyphens: none !important;
  word-spacing: normal !important;
}



#masthead.site-header, 
#ast-desktop-header .main-header-bar {
    position: fixed !important;
    top: 0 !important;
    width: 100% !important;
    z-index: 9999 !important;
    animation: none !important;
    transition: all 0.3s ease !important;
}


.video-main{
    position: fixed !important;
    top: 0px;
    z-index: 0 !important;
}


.ast-footer-copyright p {

    line-height: 1em;
}



/* Popup taust ja tekst */
.custom-popup {
    display: none;
    position: fixed;
    top: 0; left: 0;
    width: 100%;
    height: 100%;
    z-index: 9999;
}

.custom-popup.active {
    display: block;
}

.custom-popup-box {
    position: relative;
    max-width: 600px;
    margin: 5% auto;
    background: linear-gradient(212deg, #ffffff, #e8e8e8);
    color: #000; /* valge tekst */
    padding: 2rem;
    border-radius: 8px;
    z-index: 10000;
}

/* Sulgemisnupp */
.custom-popup-close {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: none;
    border: none;
    color: #fff;
    font-size: 1.5rem;
    cursor: pointer;
}


/* Nupud */
.custom-popup-box button,
.custom-popup-box input[type="submit"] {
    background: #e0b223;
    color: #fff;
    border: none;
    padding: 0.5rem 1rem;
    cursor: pointer;
    border-radius: 4px;
}


#popup-title {
color: #080808;
}

.custom-popup-overlay {
    position: fixed;
    top: 0; left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.85); /* pooleldi must */
    z-index: 9998;
}



.wpcf7 form.sent .wpcf7-response-output {
  border: none;
  text-align: center;
  font-family: Afacad;
  font-size: 20px;

}
#contact-popup label {
    color: #080808 !important;
}



body::before {
  content: "";
  position: fixed;
  top: 0;
  left: 0;
  height: 100px; /* default desktop height */
  width: 100%;
  z-index: 3;
  pointer-events: none;
  background: linear-gradient(
    to right,
    rgba(0, 0, 0, 0.8) 0%,
    rgba(0, 0, 0, 0.6) 40%,
    rgba(0, 0, 0, 0.4) 70%,
    rgba(0, 0, 0, 0.2) 100%
  );
  backdrop-filter: blur(40px);
  -webkit-backdrop-filter: blur(40px);
}

@media (max-width: 768px) {
  body::before {
    height: 90px; /* smaller height for mobile */
  }
}



/*gradient põhivaatel*/
.main-view::after {
    content: "";
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to top, rgba(0, 0, 0, 1), transparent);
    z-index: 0;
    pointer-events: none;
}










.sticky-buttons-bar {
  position: fixed;
  left: 30px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  z-index: 9999;
  top: 50%;
  transform: translateY(-50%);
  mix-blend-mode: difference;
}


.sticky-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  min-width: 40px;
  padding: 12px 16px;
  border-radius: 999px;
  font-size: 22px;
  letter-spacing: 1px;
  font-weight: 300;
  text-decoration: none;
  color: #ffffff;;
  transition: transform 0.2s ease;
  font-family: Afacad;
}


.sticky-btn:hover {
  transform: scale(1.2);
  color: #000000;
}


.sticky-btn svg {
  width: 25px;
  height: 25px;
  fill: #ffffff;;
  margin-right:15px;
}


.social-btn {
  min-width: auto;
  padding: 12px;
}


@media (max-width: 768px) {
  .sticky-buttons-bar {
    position: fixed;
    bottom: 0;
    top: auto;
    left: 0;
    right: 0;
    width: 100%;
    flex-direction: row;
    justify-content: space-around;
    padding: 8px 0;
    background: linear-gradient(
      to left,
      rgba(0, 0, 0, 0.6) 0%,
      rgba(0, 0, 0, 0.4) 100%
    );
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
      transform: none;
      mix-blend-mode: normal;
    }
  }

  .sticky-btn {
    padding: 10px;
    min-width: auto;
  }

  .sticky-btn svg {
    margin-right: 0;
    width: 20px;
    height: 20px;
  }
}















/* tabel kipsivalu lehel */
.comparison-section {
  overflow: hidden;
}

.comparison-table-wrapper {
  overflow-y: auto;
  border: 1px solid #000;
  color: #080808;
}

.comparison-table {
  width: 100%;
  border-collapse: collapse;
}

.comparison-table th,
.comparison-table td {
  padding: 12px;
  text-align: left;
  vertical-align: top;
}

.comparison-table thead th {
  position: sticky;
  top: 0;
  background-color: #080808;
  color: #f1f1f1;
  z-index: 2;
}

/* Mobile only */
@media (max-width: 768px) {
  .comparison-table-wrapper {
    max-height: 50vh;
  }
}










