/* Clone Enhancements & Polishing */

/* Ensure smooth font rendering */
body {
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

/* Offcanvas Mobile Drawer */
#offcanvas {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(0, 0, 0, 0.6);
  z-index: 99999;
  visibility: hidden;
  opacity: 0;
  transition: opacity 0.3s ease, visibility 0.3s ease;
  display: flex;
  justify-content: flex-end;
}

#offcanvas.active, #offcanvas[data-state="open"] {
  visibility: visible;
  opacity: 1;
}

#offcanvas .ct-panel-inner {
  width: 320px;
  max-width: 85vw;
  height: 100%;
  background-color: #121519;
  padding: 30px 25px;
  box-shadow: -5px 0 25px rgba(0,0,0,0.5);
  transform: translateX(100%);
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  overflow-y: auto;
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

#offcanvas.active .ct-panel-inner, #offcanvas[data-state="open"] .ct-panel-inner {
  transform: translateX(0);
}

#offcanvas .ct-close-button {
  position: absolute;
  top: 20px;
  right: 20px;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: rgba(255,255,255,0.1);
  color: #ffffff;
  border: none;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  font-size: 20px;
  transition: background 0.2s ease;
}

#offcanvas .ct-close-button:hover {
  background: #f25757;
}

#offcanvas .mobile-menu ul {
  list-style: none;
  padding: 0;
  margin: 40px 0 0 0;
  display: flex;
  flex-direction: column;
  gap: 15px;
}

#offcanvas .mobile-menu ul li a {
  color: #ffffff;
  font-size: 17px;
  font-weight: 600;
  text-decoration: none;
  display: block;
  padding: 8px 0;
  border-bottom: 1px solid rgba(255,255,255,0.07);
  transition: color 0.2s ease, padding-left 0.2s ease;
}

#offcanvas .mobile-menu ul li a:hover {
  color: #f25757;
  padding-left: 6px;
}

#offcanvas .mobile-menu .sub-menu {
  margin: 5px 0 10px 15px;
  gap: 8px;
}

#offcanvas .mobile-menu .sub-menu a {
  font-size: 14px;
  color: #abb8c3;
  border-bottom: none;
}

/* Video Hover & Play Button */
.elementor-custom-embed-image-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-size: cover;
  background-position: center;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: opacity 0.3s ease;
  z-index: 2;
  border-radius: 8px;
}

.elementor-custom-embed-play {
  width: 68px;
  height: 68px;
  background: rgba(242, 87, 87, 0.9);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.2s ease, background 0.2s ease;
  box-shadow: 0 4px 20px rgba(0,0,0,0.3);
}

.elementor-custom-embed-play svg {
  width: 32px;
  height: 32px;
  fill: #ffffff;
}

.elementor-custom-embed-image-overlay:hover .elementor-custom-embed-play {
  transform: scale(1.12);
  background: #de3e3e;
}

.e-hosted-video {
  position: relative;
  overflow: hidden;
  border-radius: 8px;
  background: #000;
  aspect-ratio: 16/9;
}

.e-hosted-video video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* WhatsApp Floating Button */
.joinchat {
  position: fixed;
  bottom: 25px;
  right: 25px;
  z-index: 9999;
  cursor: pointer;
}

.joinchat__button {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background-color: #25d366;
  box-shadow: 0 4px 16px rgba(37, 211, 102, 0.4);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
  text-decoration: none;
}

.joinchat__button:hover {
  transform: scale(1.08);
  box-shadow: 0 6px 22px rgba(37, 211, 102, 0.6);
}

.joinchat__button svg, .joinchat__button img {
  width: 35px;
  height: 35px;
  fill: #ffffff;
}

.joinchat__tooltip {
  position: absolute;
  bottom: 12px;
  right: 72px;
  background: #ffffff;
  color: #333333;
  padding: 10px 16px;
  border-radius: 20px;
  box-shadow: 0 4px 15px rgba(0,0,0,0.15);
  font-size: 13px;
  font-weight: 500;
  white-space: nowrap;
  pointer-events: none;
  opacity: 0;
  transform: translateX(10px);
  transition: opacity 0.3s ease, transform 0.3s ease;
}

.joinchat--show .joinchat__tooltip {
  opacity: 1;
  transform: translateX(0);
}

/* Sticky Header styling */
header.ct-header.is-sticky {
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
  transition: box-shadow 0.3s ease;
}

/* Responsive adjustments */
@media (max-width: 1024px) {
  [data-id="menu-secondary"] {
    display: none !important;
  }
  [data-id="trigger"] {
    display: flex !important;
  }
}
