/**
 * Theme Name:     ambe child theme
 * Author:         websilt
 * Template:       hello-elementor
 * Text Domain:	   ambe-child-theme
 * Description:    Hello Elementor is a lightweight and minimalist WordPress theme that was built specifically to work seamlessly with the Elementor site builder plugin. The theme is free, open-source, and designed for users who want a flexible, easy-to-use, and customizable website. The theme, which is optimized for performance, provides a solid foundation for users to build their own unique designs using the Elementor drag-and-drop site builder. Its simplicity and flexibility make it a great choice for both beginners and experienced Web Creators.
 */ 
/* Hide the body content until the preloader is ready */

/* 1. Hide the site root */
html.preloader-active body > *:not(.elementor-popup-modal) {
    opacity: 0 !important;
    visibility: hidden !important;
}

/* 2. FORCE the Popup to be 100% visible immediately */
/* This removes the "faded" or "stuck" look */
html.preloader-active .elementor-popup-modal {
    visibility: visible !important;
    opacity: 1 !important;
    display: flex !important; /* Ensures the flex centering isn't lost */
}

/* 3. Target the specific content inside the popup to ensure it's not faded */
html.preloader-active .elementor-popup-modal .elementor-widget-container {
    opacity: 1 !important;
}

/* 4. Smooth reveal for the website */
html.preloader-done body > * {
    opacity: 1 !important;
    visibility: visible !important;
    transition: opacity 0.4s ease-in-out;
}

/* Hide close button only for preloader popup */

 /* container */
.main-container {
  width: 100%;
  height: 68vh;
  overflow: hidden;
}

/* accordion */
.accordion {
  display: flex;
  width: 100%;
  height: 100%;
}

/* tab */
.tab {
  position: relative;
  flex: 1.5;
  overflow: hidden;
  cursor: pointer;
  transition: flex 0.6s ease;
	border:8px solid #fff;
}

/* accordion hover behaviour */
.accordion:hover .tab {
  flex: 0.6;
}

.tab:hover {
  flex: 1.2;
}

/* background */
.bg {
  position: absolute;
  inset: 0;
  z-index: 1;
}

.bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s ease;
}

.tab:hover .bg img {
  transform: scale(1.15);
}

/* overlay */
.bg::after {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,0.55);
  opacity: 0.4;
  transition: opacity 0.4s ease;
  z-index: 2;
}

.tab:hover .bg::after {
  opacity: 0.75;
}

/* content wrapper */
.tab-inner {
  position: absolute;
  inset: 0;
  z-index: 3;
}

/* thumbnail bottom centered */
.tab-thumb {
  position: absolute;
  bottom: 30px;
  left: 50%;
  transform: translateX(-50%) scale(0.7); /* 30% smaller */
  height: 80px;
  transition: transform 0.4s ease;
}

/* caption top-left */
.caption {
  position: absolute;
  top: 30px;
  left: 30px;
  max-width: 360px;
  color: #fff;
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.4s ease, transform 0.4s ease;
}

/* show caption on hover */
.tab:hover .caption {
  opacity: 1;
  transform: translateY(0);
}

/* button */
.caption a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-top: 14px;
  padding: 10px 22px;
  background: #fff;
  color: #000;
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
  border-radius: 50px;
  transition: all 0.3s ease;
}

.caption a:hover {
  background: #FAC958;
  color: #000;
}

 /* Button base */
.btn-slide-reverse .elementor-button {
  position: relative;
  overflow: hidden;
  background-color: #FAC958;
  color: #000;
  border: none;
  z-index: 1;
  transition: color 0.3s ease;
}

/* Sliding background */
.btn-slide-reverse .elementor-button::before {
  content: "";
  position: absolute;
  inset: 0;
  background-color: #000;
  transform: translateX(-100%);
  transition: transform 0.6s ease;
  z-index: 0;
}

/* Hover animation */
.btn-slide-reverse .elementor-button:hover::before {
  transform: translateX(0);
}

/* Text color swap */
.btn-slide-reverse .elementor-button:hover {
  color: #FAC958 !important;
}

 .btn-slide-reverse .elementor-button span,
.btn-slide-reverse .elementor-button .elementor-button-icon {
  position: relative;
  z-index: 2;
}


/* ============================= */
/* TABLET & MOBILE FIX (NO HOVER) */
/* ============================= */
@media (max-width: 1024px) {
	
	.main-container { 
  overflow: auto;
		height:auto;
}

  /* stop accordion behavior */
  .accordion {
    flex-wrap: wrap;
  }

  /* 2 items per row on tablet */
  .tab {
    flex: 0 0 50%;
    height: 420px;
  }

  /* disable hover flex logic */
  .accordion:hover .tab,
  .tab:hover {
    flex: 0 0 50%;
  }

  /* always show caption */
  .caption {
    opacity: 1;
    transform: none;
  }

  /* remove hover dependency for overlay */
  .bg::after {
    opacity: 0.75;
  }

  /* stop image zoom on hover */
  .tab:hover .bg img {
    transform: none;
  }
}

/* ============================= */
/* MOBILE */
/* ============================= */
@media (max-width: 767px) {

 .tab {
    flex: 0 0 100%;
    height: 400px;
  }

  .accordion:hover .tab,
  .tab:hover {
    flex: 0 0 100%;
  }
	.elementor-nav-menu > li.contact-menu > a {
		margin-bottom:20px !important;
	}
}

/* Remove Elementor default hover underline */
.elementor-nav-menu > li.contact-menu > a::after {
  display: none !important;
}

.elementor-nav-menu > li.contact-menu > a {
  text-decoration: none !important;
  border-bottom: none !important;
	background-color:transparent;
}


 /* =============================== */
/* Elementor Nav Menu CTA Button  */
/* =============================== */

.elementor-nav-menu > li.contact-menu > a {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 40px;
  padding: 8px 12px;
  width: 120px !important;
  margin-left: 20px !important;
  background-color: #FAC958; 
  color: #000 !important;
  text-align: center;
  overflow: hidden;
  z-index: 1;
  transition: background 0.3s ease;
	border-radius:4px;
}


.elementor-nav-menu > li.contact-menu > a::before {
  content: "";
  position: absolute;
  inset: 0;               
  background-color: #000;
  transform: translateX(-100%);
  transition: transform 0.6s ease;
  z-index: 0;
}

.elementor-nav-menu > li.contact-menu > a:hover::before {
  transform: translateX(0);
}

.elementor-nav-menu > li.contact-menu > a:hover {
  background-color: #000 !important; 
  color: #FAC958 !important;
}
.elementor-nav-menu > li.contact-menu > a > span {
  position: relative;
  z-index: 2;
  line-height: 1;
}


