/*======================================
Theme Name: Handynest Multi-Services Divi Child Theme
Theme URI: https://handynest.elvarstudios.com/
Author: Elvar Studios
Author URI: http://elvarstudios.com/
Template: Divi
Version: 1.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
======================================*/

/* ===== NOTES ==================================================================
 *
 *
 * Discover our premium Divi products: http://elvarstudios.com/
 * 
 * =============================================================================== */ 
 
/* ======================================================
   PREVENT DEFAULT WEBSITE SCROLL
====================================================== */ 

/*No Horizontal Scroll bar*/
#page-container { overflow:hidden; }


/* ======================================================
   LENIS CSS FOR SMOOTH SCROLL
====================================================== */

/* Let Lenis control smoothing. */
  html.lenis,
  html.lenis body {
    scroll-behavior: auto !important;
  }


/* ======================================================
   START CURSOR POINTER
====================================================== */
/*start cursor pointer*/
.clickable {
  cursor: pointer;
}


/* ======================================================
   SERVICES HOVER EFFECT CSS
====================================================== */

/* Services Hover effect CSS */
.service-card{
    position: relative;
    overflow: hidden;
    height: 650px;
}

.service-bg{
    position: absolute;
    inset: -30px;
    background: url("your-image.jpg") center center / cover no-repeat;

    transform: translate(0,0) scale(1);
    transition: transform .25s ease-out;
    will-change: transform;
}

.service-content{
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;

    transform: translateY(100%);
    transition: .6s cubic-bezier(.16,1,.3,1);
    z-index: 2;
}

.service-card:hover .service-content{
    transform: translateY(0);
}


/* ======================================================
   HOME 1 CIRCLE FOR OUR WORKFLOW
====================================================== */

/* Home 1 Circle our workflow */
.service-item {
transition: transform 0.3s, box-shadow 0.3s;
}
.service-item:hover {
            transform: scale(1.05);
}
/* Home 1 Circle our workflow */




/* ======================================================
   START - OUR TEAM CARD
====================================================== */

/* Main card */
.technician-card {
    overflow: hidden;
    transition: transform 0.5s ease,
                box-shadow 0.5s ease;
    transform: translateY(0);
}

/* Card hover */
.technician-card:hover {
    transform: translateY(-12px);
    box-shadow: 0 25px 50px rgba(16, 90, 83, 0.18);
}

/* Image container */
.technician-card .et_pb_image {
    overflow: hidden;
    border-radius: 20px;
}

/* Image zoom */
.technician-card .et_pb_image img {
    transition: transform 0.7s ease;
}

/* Zoom image on card hover */
.technician-card:hover .et_pb_image img {
    transform: scale(1.08);
}

/* Circular icon/button */
.technician-card .et_pb_button,
.technician-card .et_pb_image + .et_pb_button {
    transition: transform 0.5s ease,
                box-shadow 0.5s ease;
}

/* Button lift */
.technician-card:hover .et_pb_button {
    transform: translateY(-8px);
    box-shadow: 0 12px 25px rgba(16, 90, 83, 0.25);
}

/* Name animation */
.technician-card h2,
.technician-card h3 {
    transition: transform 0.4s ease;
}

.technician-card:hover h2,
.technician-card:hover h3 {
    transform: translateY(-3px);
}


/* ======================================================
   DESKTOP MAIN MENU DROPDOWN CONTAINER
====================================================== */

/* Main Dropdown Container */
.et_pb_menu .sub-menu {
    min-width: 300px; /* Increase as needed */
}

/* Dropdown Links */
.et_pb_menu .sub-menu li a {
    white-space: nowrap;
    width: 100%;
}

/* Prevent Divi from limiting link width */
.et_pb_menu .sub-menu li {
    width: 100%;
}




/* ======================================================
   MOBILE & TABLET MENU FULLSECREEN WITH CLOSE ICON
====================================================== */

dialog[data-divi-fullscreen-menu] {
  --menu-background: #ffffff;
  --menu-text: #193f36;
  --menu-accent: #ff6952;
  --menu-border: rgba(25, 63, 54, 0.13);

  --menu-font-size: clamp(22px, 4vw, 34px);
  --submenu-font-size: clamp(16px, 2.8vw, 21px);
  --menu-font-weight: 600;

  --menu-side-padding: clamp(24px, 6vw, 80px);
  --menu-content-width: 850px;
  --menu-link-padding: 19px;

  --close-size: 48px;
}

/* ======================================================
   FULLSCREEN PANEL
====================================================== */

dialog[data-divi-fullscreen-menu] {
  position: fixed !important;
  inset: 0 !important;

  width: 100% !important;
  max-width: none !important;

  height: 100vh !important;
  height: 100dvh !important;
  max-height: none !important;

  margin: 0 !important;
  padding: 0 !important;
  border: 0 !important;
  border-radius: 0 !important;

  background: var(--menu-background);
  color: var(--menu-text);

  overflow: hidden !important;
  box-sizing: border-box;
}

dialog[data-divi-fullscreen-menu]:not([open]) {
  display: none !important;
}

dialog[data-divi-fullscreen-menu][open] {
  display: flex !important;
  flex-direction: column;
}

dialog[data-divi-fullscreen-menu]::backdrop {
  background: transparent;
}

[data-divi-fullscreen-menu] *,
[data-divi-fullscreen-menu] *::before,
[data-divi-fullscreen-menu] *::after {
  box-sizing: border-box;
}

/* Top bar stays visible while menu content scrolls */

[data-divi-fullscreen-menu] [data-menu-topbar] {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex: 0 0 auto;
  gap: 20px;

  padding:
    calc(18px + env(safe-area-inset-top, 0px))
    var(--menu-side-padding)
    18px;
}

[data-divi-fullscreen-menu] [data-menu-label] {
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.15em;
  line-height: 1.4;
  text-transform: uppercase;
}

/* Close button */

[data-divi-fullscreen-menu] [data-menu-close] {
  appearance: none;
  display: grid;
  place-items: center;

  width: var(--close-size);
  height: var(--close-size);

  margin: 0;
  padding: 0;

  border: 1px solid var(--menu-border);
  border-radius: 50%;
  background: transparent;
  color: var(--menu-text);

  cursor: pointer;
  flex: 0 0 auto;
}

[data-divi-fullscreen-menu] [data-menu-close] svg {
  width: 22px;
  height: 22px;
}

/* Scrollable menu area */

[data-divi-fullscreen-menu] [data-menu-scroll] {
  flex: 1 1 auto;
  min-height: 0;

  overflow-y: auto;
  overscroll-behavior-y: contain;
  -webkit-overflow-scrolling: touch;

  padding:
    20px
    var(--menu-side-padding)
    calc(40px + env(safe-area-inset-bottom, 0px));
}

/* Divi native mobile menu */

[data-divi-fullscreen-menu] .et_mobile_menu {
  position: static !important;
  display: block !important;

  width: 100% !important;
  max-width: var(--menu-content-width) !important;
  height: auto !important;

  margin: 0 auto !important;
  padding: 0 !important;

  border: 0 !important;
  box-shadow: none !important;
  background: transparent !important;

  list-style: none !important;
  text-align: left !important;

  opacity: 1 !important;
  visibility: visible !important;
  transform: none !important;
}

[data-divi-fullscreen-menu] .et_mobile_menu li {
  position: relative !important;
  display: block !important;

  float: none !important;
  width: 100% !important;

  margin: 0 !important;
  padding: 0 !important;

  list-style: none !important;
}

[data-divi-fullscreen-menu] .et_mobile_menu > li {
  border-bottom: 1px solid var(--menu-border);
}

[data-divi-fullscreen-menu] .et_mobile_menu li > a {
  display: block !important;

  padding: var(--menu-link-padding) 0 !important;
  margin: 0 !important;

  border: 0 !important;
  background: transparent !important;

  color: var(--menu-text) !important;
  font-family: inherit !important;
  font-size: var(--menu-font-size) !important;
  font-weight: var(--menu-font-weight) !important;
  line-height: 1.35 !important;
  text-decoration: none !important;

  opacity: 1 !important;
  overflow-wrap: anywhere;
}

[data-divi-fullscreen-menu] .et_mobile_menu li > a:hover,
[data-divi-fullscreen-menu] .et_mobile_menu .current-menu-item > a {
  color: var(--menu-accent) !important;
}

/* Space for the separate dropdown toggle */

[data-divi-fullscreen-menu] .et_mobile_menu
li[data-has-submenu] > a {
  padding-right: 58px !important;
}

/* Hide any native dropdown arrow on the link */

[data-divi-fullscreen-menu] .et_mobile_menu
li[data-has-submenu] > a::after {
  display: none !important;
}

/* Dropdown toggle */

[data-divi-fullscreen-menu] [data-submenu-toggle] {
  appearance: none;
  position: absolute;
  top: 9px;
  right: 0;

  display: grid;
  place-items: center;

  width: 44px;
  height: 44px;

  margin: 0;
  padding: 0;

  border: 0;
  border-radius: 50%;
  background: transparent;
  color: var(--menu-text);

  cursor: pointer;
}

[data-divi-fullscreen-menu] [data-submenu-toggle] svg {
  width: 19px;
  height: 19px;
  transition: transform 0.25s ease;
}

[data-divi-fullscreen-menu]
[data-submenu-toggle][aria-expanded="true"] svg {
  transform: rotate(180deg);
}

/* Divi native dropdown lists */

[data-divi-fullscreen-menu] .et_mobile_menu ul {
  position: static !important;
  display: block !important;

  width: 100% !important;
  min-width: 0 !important;

  margin: 0 !important;
  padding: 0 0 0 18px !important;

  border: 0 !important;
  box-shadow: none !important;
  background: transparent !important;

  opacity: 1 !important;
  visibility: visible !important;
  transform: none !important;

  overflow: hidden !important;
}

[data-divi-fullscreen-menu] .et_mobile_menu ul[hidden] {
  display: none !important;
}

[data-divi-fullscreen-menu] .et_mobile_menu ul li > a {
  padding-top: 13px !important;
  padding-bottom: 13px !important;
  font-size: var(--submenu-font-size) !important;
  font-weight: 500 !important;
}

[data-divi-fullscreen-menu] .et_mobile_menu ul
[data-submenu-toggle] {
  top: 2px;
}

[data-divi-fullscreen-menu] button:focus-visible,
[data-divi-fullscreen-menu] a:focus-visible {
  outline: 2px solid var(--menu-accent);
  outline-offset: 3px;
}

@media (prefers-reduced-motion: reduce) {
  [data-divi-fullscreen-menu] [data-submenu-toggle] svg {
    transition: none;
  }
} 
/*end*/
/*Start -what we fix */
  /* =========================================
   WIRING INTERACTIVE
========================================= */

.wiring-interactive {
    position: relative;
}
/* =========================================
   ACTIVE HEADING
========================================= */

  
  
/* If heading is a Divi Blurb */

.wiring-interactive
.trigger-item.is-active
.trigger-card
.et_pb_module_header {
    color: #E96C54 !important;
}
  
/* =========================================
   LEFT SIDE
========================================= */

.wiring-interactive .left-main-group {
    position: relative;
}


/* =========================================
   LEFT TRIGGER CARDS
========================================= */

.wiring-interactive .trigger-item {
    position: relative;
    cursor: pointer;

   /* border: 1px solid #e5e5e5;*/

    transition:
     
        transform 0.35s ease,
        box-shadow 0.35s ease;
}


/* =========================================
   ACTIVE CARD
========================================= */

.wiring-interactive .trigger-item.is-active {
    border-color: #E96C54 !important;
}



/* =========================================
   ACTIVE ICON
========================================= */

.wiring-interactive
.trigger-item.is-active
.et_pb_icon {
    background-color: #E96C54 !important;
  
}
  /* Arrow glyph */
.wiring-interactive
.trigger-item.is-active
.et_pb_icon
.et-pb-icon {
    color: #FFFFFF !important;
}
/* =========================================
   RIGHT SIDE
========================================= */

.wiring-interactive .right-main-group {
    position: relative;
    width: 100%;
}


/* =========================================
   TARGETS
========================================= */

.wiring-interactive .target-item {
    position: absolute;

    top: 0;
    left: 0;

    width: 100%;

    opacity: 0;
    visibility: hidden;

    pointer-events: none;
}


/* =========================================
   FIRST TARGET DEFINES HEIGHT
========================================= */

.wiring-interactive
.target-item.target-01 {
    position: relative;
}


/* =========================================
   ACTIVE TARGET
========================================= */

.wiring-interactive
.target-item.is-active {
    opacity: 1;
    visibility: visible;

    pointer-events: auto;
}


/* =========================================
   IMAGES
========================================= */

.wiring-interactive
.target-item img {
    display: block;
    width: 100%;
}


/* =========================================
   HOVER
========================================= */

@media (hover: hover) {

    .wiring-interactive
    .trigger-item:not(.is-active):hover {
        /*transform: translateX(5px);*/
    }

}


/* ==================================================
   DIVI VISUAL BUILDER — EDITING MODE
================================================== */

.et-fb .wiring-interactive .target-item,
.et-fb-root-ancestor .wiring-interactive .target-item {
    position: relative !important;
    top: auto !important;
    left: auto !important;

    opacity: 1 !important;
    visibility: visible !important;

    transform: none !important;
    pointer-events: auto !important;
}

/*end*/

/*Start -electrical "our services"*/
/* ==========================================
   OUTER VIEWPORT
   ========================================== */

.gallery-loop {
    position: relative !important;
    height: 760px !important;
    overflow: hidden !important;
   
}


/* ==========================================
   LEFT + RIGHT COLUMNS
   ========================================== */

.gallery-left,
.gallery-right {
    position: relative !important;
    will-change: transform;
   
}


/* ==========================================
   IMAGE MODULE
   ========================================== */

.gallery-left .et_pb_image,
.gallery-right .et_pb_image {
   
}


/* ==========================================
   IMAGE
   ========================================== */

.gallery-left img,
.gallery-right img {
    
    height: 300px !important;

    object-fit: cover !important;

}


/* ==========================================
   TOP FADE
   ========================================== */

.gallery-loop::before {
    content: "";

    position: absolute;

    z-index: 100;
 
    top: 0;
    left: 0;
    right: 0;

    height: 110px;

    pointer-events: none;

    background: linear-gradient(
        to bottom, 
        #ffffff 0%, 
        rgba(255, 255, 255, 0.95) 20%, 
        rgba(255, 255, 255, 0.65) 50%, 
        rgba(255, 255, 255, 0) 100%
    ); 
}


/* ==========================================
   BOTTOM FADE
   ========================================== */

.gallery-loop::after {
    content: "";

    position: absolute;
 
    z-index: 100;

    left: 0;
    right: 0;
    bottom: 0;

    height: 130px;

    pointer-events: none;
 background: linear-gradient(
        to top, 
        #ffffff 0%, 
        rgba(255, 255, 255, 0.95) 20%, 
        rgba(255, 255, 255, 0.65) 50%, 
        rgba(255, 255, 255, 0) 100%
    ); 
}


/* ==========================================
   TABLET
   ========================================== */

@media (max-width: 980px) {

    .gallery-loop {
        height: 650px !important;
    }

    .gallery-left img,
    .gallery-right img {
        height: 260px !important;
    }

}


/* ==========================================
   MOBILE
   ========================================== */

@media (max-width: 767px) {

    .gallery-loop {
        height: 520px !important;
    }

    .gallery-left,
    .gallery-right {
        /*gap: 12px !important;*/
    }

    .gallery-left img,
    .gallery-right img {
        height: 210px !important;
        /*border-radius: 10px !important;*/
    }

}
/*end*/



/* ==========================================
   MEGA MENU — BUBBLE INDICATOR EDITING CONTROLS
   ========================================== */

.home-motion {
  --arrow-size: 14px;
  --arrow-radius: 2px;
}

/* Position is calculated separately for each dropdown. */
.et_pb_dropdown.home-motion::after {
  content: "";
  position: absolute;

  width: var(--arrow-size);
  height: var(--arrow-size);

  top: calc(var(--arrow-size) / -2);
  left: var(--arrow-left, 50%);

  background: inherit;
  border-radius: var(--arrow-radius);

  transform: translateX(-50%) rotate(45deg);
  pointer-events: none;
}