/**
* Theme Name: Estman Child
* Author: <a href="https://estman.ee/">Estman</a>
* Template: estman
* Version: 1.2.0
*/

/* ==========================================================================
   Glassmorphism Sticky Header
   ========================================================================== */

.header-absolute {
  position: absolute !important;
  width: 95% !important;
  left: 2.5% !important;
  top: 0 !important;
  z-index: 9999 !important;
  transition: width 0.3s ease, left 0.3s ease, border-radius 0.3s ease, margin-top 0.3s ease !important;
}

.elementor-64 .elementor-element.e-con.e-parent {
  --margin-top:10px !important;
  --padding-top: 0px !important;
  --padding-bottom: 0px !important;
  --padding-left: 0px !important;
  --padding-right: 0px !important;
}

.elementor-64 .e-con.e-parent > .e-con-inner > .e-con.e-child {
  --border-radius: 0px 0px 0px 0px !important;
  transition: all 0.3s ease !important;
}


.elementor-64 .elementor-element.elementor-element-0c592e6,
.elementor-64 .elementor-element.elementor-element-0c592e6:not(.elementor-motion-effects-element-type-background) {
  background: transparent !important;
  background-color: transparent !important;
  position: relative !important;
  border-bottom: 1px solid rgba(255, 255, 255, 0.2) !important;
}

.elementor-64 .elementor-element.elementor-element-0c592e6::before {
  content: "" !important;
  position: absolute !important;
  top: 0 !important;
  left: 0 !important;
  right: 0 !important;
  bottom: 0 !important;
  background: rgba(255, 255, 255, 0.88) !important;
  backdrop-filter: blur(16px) !important;
  -webkit-backdrop-filter: blur(16px) !important;
  z-index: -1 !important;
  border-radius: inherit !important;
  transition: all 0.3s ease !important;
}

.elementor-64 .e-con.e-parent > .e-con-inner > .e-con.e-child .e-con.e-child {
  background: transparent !important;
  background-color: transparent !important;
}

.main-navigation .sub-menu {
  background: rgba(255, 255, 255, 0.45) !important;
  background-color: rgba(255, 255, 255, 0.45) !important;
  backdrop-filter: blur(16px) !important;
  -webkit-backdrop-filter: blur(16px) !important;
}

/* ==========================================================================
   Scrolled State (sticky, shrink 95% → 90%)
   ========================================================================== */

.header-absolute.header-scrolled {
  position: fixed !important;
  top: 0 !important;
  width: 90% !important;
  left: 5% !important;
  border-radius: 16px !important;
  margin-top: 10px !important;  
}

.header-scrolled .elementor-64 .elementor-element.elementor-element-0c592e6::before {
  background: rgba(255, 255, 255, 0.92) !important;
  backdrop-filter: blur(20px) !important;
  -webkit-backdrop-filter: blur(20px) !important;
}

.header-scrolled .elementor-64 .elementor-element.elementor-element-0c592e6,
.header-scrolled .elementor-64 .elementor-element.elementor-element-0c592e6:not(.elementor-motion-effects-element-type-background) {
  box-shadow: 0 4px 30px rgba(0, 0, 0, 0.08) !important;
  border-bottom: 1px solid rgba(255, 255, 255, 0.3) !important;
}

.header-scrolled .elementor-64 .e-con.e-parent > .e-con-inner > .e-con.e-child {
  --padding-top: 0px !important;
  --padding-bottom: 0px !important;
  --border-radius: 16px 16px 16px 16px !important;
  overflow: hidden !important;
}

.elementor-video-wrapper .elementor-video-content {
  z-index: 1 !important;
}

/* ==========================================================================
   Mobile Responsive
   ========================================================================== */

@media (max-width: 767px) {
  .elementor-64 .e-con.e-parent > .e-con-inner > .e-con.e-child {
    --border-radius: 0px 0px 0px 0px !important;
  }
}

/* ==========================================================================
   Archive Cards — Project Type Filter Buttons
   ========================================================================== */

.project-type-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 40px;
}

.project-type-filter {
  display: inline-block;
  padding: 10px 24px;
  border-radius: 25px;
  border: 1px solid var(--border);
  background: var(--background);
  color: var(--accent);
  font-size: 15px;
  font-weight: 600;
  font-family: var(--e-global-typography-text-font-family);
  text-decoration: none;
  transition: all 0.3s ease;
}

.project-type-filter:hover {
  background: var(--primary);
  border-color: var(--primary);
  color: #fff;
}

.project-type-filter.active {
  background: var(--primary);
  border-color: var(--primary);
  color: #fff;
}

/* ==========================================================================
   Archive Cards — Make entire grid item clickable
   ========================================================================== */

.project-item {
  position: relative;
  cursor: pointer;
}

.project-item .project-title a::after {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 1;
}

/* ==========================================================================
   Archive Cards — Service Button "Loe rohkem" text
   ========================================================================== */

.service-item.service-style-1 .service-content .service-button {
  width: auto;
  height: 50px;
  border-radius: 25px;
  padding: 0 22px;
  gap: 10px;
  right: 30px;
}

.service-item .service-button .service-button-text {
  font-size: 14px;
  font-weight: 600;
  color: #fff;
  white-space: nowrap;
  transition: color 0.4s ease;
}

.service-item.service-style-1 .service-content .service-button .btn-icon,
.service-item.service-style-1 .service-content .service-button .btn-icon-hover {
  color: #fff;
}

.service-item.service-style-1:hover .service-content .service-button {
  background: var(--accent);
}

.service-item.service-style-1 .decor-border {
  width: 206px;
  right: 2px;
}

.service-item.service-style-1 .decor-border:after {
  width: 202px;
  clip-path: path("M0 33H200C190.7952 33 183.6787 25.1703 179.2588 17.1769C173.5989 6.94119 162.6183 0 150 0H50C37.3818 0 26.4011 6.94119 20.7412 17.1769C16.3213 25.1703 9.20474 33 0 33Z");
}

/* ==========================================================================
   Archive Cards — Project Status (plain text, no <a>)
   ========================================================================== */

.project-item .project-status {
  background-color: var(--primary);
  padding: 10px 20px;
  border-radius: 20px;
  font-weight: 600;
  font-size: 12px;
  line-height: 1.25;
  text-transform: uppercase;
  width: fit-content;
}

/* ==========================================================================
   Single Project — Two-Column Layout
   ========================================================================== */

.single-project-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: start;
}

.single-project-layout::before,
.single-project-layout::after {
  display: none;
}

/* ==========================================================================
   Single Project — Left Column (Header + Content)
   ========================================================================== */

.single-project-right {
  border: 1px solid #E0E0E0;
  border-radius: 25px;
  padding: 40px;
}

.single-estman_project .single-projects-header {
  margin-bottom: 40px;
}

.single-estman_project .single-projects-header .entry-title {
  font-family: var(--e-global-typography-accent-font-family);
  font-size: clamp(36px, 4vmax, 56px);
  font-weight: 700;
  line-height: 1;
  letter-spacing: -2px;
  color: var(--accent);
  margin-bottom: 13px;
}

.single-estman_project .project-location {
  font-size: 16px;
  color: var(--text_light);
  margin-bottom: 20px;
  font-family: var(--e-global-typography-text-font-family);
}

.single-estman_project .project-location i {
  margin-right: 4px;
}

.single-estman_project .project-type-label {
  display: inline-block;
  font-size: 14px;
  font-weight: 600;
  font-family: var(--e-global-typography-text-font-family);
  color: #fff;
  background: var(--primary);
  padding: 6px 16px;
  border-radius: 30px;
  margin-top: 10px;
}

.single-estman_project .single-project-content {
  font-family: var(--e-global-typography-text-font-family);
  font-size: 18px;
  line-height: 1.7;
  color: var(--text);
}

/* ==========================================================================
   Single Project — Right Column (Gallery)
   ========================================================================== */

.project-gallery-grid {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.project-gallery-item {
  display: block;
  overflow: hidden;
  border-radius: 20px;
}

.project-gallery-item img {
  width: 100%;
  height: auto;
  display: block;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.project-gallery-item:hover img {
  transform: scale(1.05);
}

/* ==========================================================================
   Single Project — Animations
   ========================================================================== */

@keyframes projectFadeUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.single-project-right .project-location,
.single-project-right .entry-title,
.single-project-right .project-type-label,
.single-project-right .single-project-content,
.project-gallery-item {
  opacity: 0;
  animation: projectFadeUp 0.7s ease forwards;
}

.single-project-right .project-location {
  animation-delay: 0.15s;
}

.single-project-right .entry-title {
  animation-delay: 0.25s;
}

.single-project-right .project-type-label {
  animation-delay: 0.35s;
}

.single-project-right .single-project-content {
  animation-delay: 0.45s;
}

.project-gallery-item:nth-child(1) { animation-delay: 0.2s; }
.project-gallery-item:nth-child(2) { animation-delay: 0.35s; }
.project-gallery-item:nth-child(3) { animation-delay: 0.5s; }
.project-gallery-item:nth-child(4) { animation-delay: 0.65s; }
.project-gallery-item:nth-child(5) { animation-delay: 0.8s; }
.project-gallery-item:nth-child(6) { animation-delay: 0.95s; }

/* ==========================================================================
   Single Project — Responsive
   ========================================================================== */

@media (max-width: 991px) {
  .single-project-layout {
    grid-template-columns: 1fr;
    gap: 40px;
  }
}

