/**
Theme Name: Click Wise Design
Author: Click Wise Design
Author URI: https://clickwisedesign.com
Description: Custom WordPress theme by Click Wise Design.
Version: 1.0.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: click-wise-design
Template: astra
*/

:root {
  --br: 10px;
  --shadow: 0 2px 1rem -4px rgba(0, 0, 0, 0.2);
}

html,
body {
  width: 100%;
  height: auto;
  margin: 0px;
  padding: 0px;
  overflow-x: hidden;
}

.line-grow-left .wp-block-uagb-separator__inner {
  position: relative;
  display: block;
  width: 0%; /* Start from zero width */
  opacity: 0; /* Start invisible */
  transform-origin: right; /* Start growing from the right */
  animation:
    growFromRight 1s ease-out forwards,
    fadeIn 0.5s ease-out forwards;
}

@keyframes growFromRight {
  from {
    width: 0%; /* Start from zero width */
  }
  to {
    width: 100%; /* Grow to full width */
  }
}

/* fix logo being behind top header */
.main-header-bar {
  box-shadow: none !important;
  z-index: 10;
}

/* fix contact form not filling width */
.wp-block-uagb-container.uagb-layout-grid
  > .uagb-block-c6506a5e.uagb-is-root-container {
  width: 100% !important;
}

.site-header {
  width: 100%;
  top: 0;
  position: absolute;
  background-color: rgba(0, 0, 0, 0.25);
}

.ast-above-header.ast-above-header-bar {
  position: relative;
}

.ast-above-header.ast-above-header-bar::after {
  content: "";
  position: absolute;
  width: min(70%, 1200px);
  height: 2px;
  bottom: 0;
  right: 0;
  background-color: rgba(255, 255, 255, 0.5);
}

.ast-above-header-bar.ast-sticky-active {
  top: 0 !important;
}

#ast-desktop-header .ast-primary-header-bar.ast-sticky-active {
  top: 52px !important;
}

.ast-primary-sticky-header-active .ast-primary-header-bar {
  background: none !important;
}

.header-button {
  --ac: var(--ast-global-color-1);

  padding: 20px 32px;
  background: transparent;
  /*border-radius: var(--br);*/
  display: flex;
  position: relative;
  overflow: hidden;
  transition: all 200ms ease-in-out;
}

.header-button::after {
  content: "";
  width: 200%;
  height: 100%;
  position: absolute;
  top: 0;
  left: -200%;
  transition: left 300ms ease-in-out;
}

.header-button:hover::after {
  left: 0%;
}

.header-button__label {
  color: #fff;
  font-size: 18px;
  font-weight: bold;
  line-height: 1;
  white-space: nowrap;
  display: flex;
  align-items: center;
  gap: 1rem;
  z-index: 1;
}

@keyframes header-button-background {
  0% {
    background-position: 0% 50%;
  }
  50% {
    background-position: 100% 50%;
  }
  100% {
    background-position: 0% 50%;
  }
}

.header-button::before {
  content: "";
  position: absolute;
  inset: 0;
  padding: 2px;
  border-radius: inherit;
  /*background: linear-gradient(
    110deg,
    var(--ast-global-color-0),
    var(--ast-global-color-1),
    var(--ast-global-color-0)
  );*/
  background-color: #fff;
  background-size: 400% 400%;
  animation: header-button-background 5s linear infinite;
  -webkit-mask:
    linear-gradient(#fff 0 0) content-box,
    linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  pointer-events: none;
}

.header-button:hover {
  transform: translateY(-2px) scale(1.03);
}

.uagb-block-9a97d13d > .wp-block-uagb-container {
  transition-property:
    background-color, transform, translate, opacity !important;
  transition-duration: 150ms !important;
  transition-timing-function: ease-in-out !important;
}

.uagb-block-9a97d13d > .wp-block-uagb-container:hover {
  background-color: color-mix(
    in srgb,
    var(--ast-global-color-1) 10%,
    var(--ast-global-color-7)
  ) !important;
  translate: 0 -0.25rem !important;
}

.wp-block-uagb-container.uagb-block-712b80e8::before {
  height: calc(100%) !important;
}

.bg-dots,
.bg-grid {
  position: relative;
  z-index: 0;
}

.bg-dots::after,
.bg-grid::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background-size: var(--spacing) var(--spacing);
}

.bg-dots::after {
  --spacing: 1.5rem;

  opacity: 0.25;
  background-image:
    radial-gradient(white 1px, transparent 1px),
    radial-gradient(white 1px, transparent 1px);
  background-position: center;
}

.bg-grid::after {
  --spacing: 2rem;
  --color: #fff;

  opacity: 0.2;
  background-image:
    linear-gradient(to right, var(--color) 1px, transparent 1px),
    linear-gradient(to bottom, var(--color) 1px, transparent 1px);
  -webkit-mask-image: radial-gradient(
    ellipse 50% 80% at 50% 0%,
    #000 80%,
    transparent 110%
  );
  mask-image: radial-gradient(
    ellipse 50% 80% at 50% 0%,
    #000 80%,
    transparent 110%
  );
}

.swoosh {
  position: relative;
}

.swoosh::after {
  content: "";
  width: 100%;
  height: clamp(32px, 7vw, 96px);
  position: absolute;
  bottom: 0;
  left: 0;
  background-color: var(--ast-global-color-7);
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1440 80' preserveAspectRatio='none'%3E%3Cpath d='M0,20 C460,100 1080,20 1440,30 L1440,80 L0,80 Z' fill='%23000'/%3E%3C/svg%3E")
    no-repeat center bottom;
  -webkit-mask-size: 100% 100%;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1440 80' preserveAspectRatio='none'%3E%3Cpath d='M0,20 C460,100 1080,20 1440,30 L1440,80 L0,80 Z' fill='%23000'/%3E%3C/svg%3E")
    no-repeat center bottom;
  mask-size: 100% 100%;
  pointer-events: none;
}

.center-up {
  translate: 0% -50%;
}

.uagb-icon-margin-wrapper {
  display: flex;
}

#work-gallery {
  background: linear-gradient(
    to bottom,
    color-mix(in srgb, var(--ast-global-color-0) 7%, var(--ast-global-color-7))
      color-mix(
        in srgb,
        var(--ast-global-color-0) 10%,
        var(--ast-global-color-7)
      )
  );
}

#services > div {
  position: relative;
  overflow: hidden;
  transition-property:
    background-color, border-color, transform, opacity, scale !important;
  transition-duration: 150ms !important;
  transition-timing-function: ease-in-out !important;
}

#services > div::after {
  content: "";
  width: 200%;
  height: 100%;
  background: linear-gradient(
    120deg,
    transparent,
    rgba(255, 255, 255, 0.5),
    transparent
  );
  position: absolute;
  top: 0;
  left: -200%;
  transition: left 300ms ease-in-out;
}

#services > div:hover::after {
  left: 0%;
}

#services > div:hover {
  background-color: color-mix(
    in srgb,
    var(--ast-global-color-0) 10%,
    var(--ast-global-color-6)
  ) !important;
  scale: 1.05;
}

.w-l .uagb-container-inner-blocks-wrap {
  max-width: min(100%, 1800px) !important;
}

.current_page_item .menu-link,
.menu-link:hover {
  text-decoration: underline;
  text-decoration-thickness: 2px;
  text-underline-offset: 8px;
  text-decoration-color: var(--ast-global-color-0);
}

#service-sidebar {
  background-color: color-mix(
    in srgb,
    var(--ast-global-color-0) 60%,
    #000
  ) !important;
}

#service-sidebar .wp-block-uagb-icon-list-child {
  padding-top: 20px;
  border-bottom: solid 1px white;
  width: 100%;
  padding-bottom: 20px;
  transition: padding-left 0.3s ease;
  padding-left: 0; /* No reserved space by default */
  margin-bottom: 0;
}

#service-sidebar .wp-block-uagb-icon-list-child span {
  text-align: left;
}

#service-sidebar .wp-block-uagb-icon-list-child::before {
  content: "→";
  position: absolute;
  right: 100%; /* Position to the left of the text */
  top: 50%;
  transform: translate(-10px, -50%);
  opacity: 0;
  margin-right: 0.3em; /* Small gap between arrow and text */
  transition:
    opacity 0.3s ease,
    transform 0.3s ease;
  color: white;
}

#service-sidebar .wp-block-uagb-icon-list-child:hover::before,
#service-sidebar .wp-block-uagb-icon-list-child.active::before {
  opacity: 1;
  transform: translate(0, -50%);
}

#service-sidebar:has(.wp-block-uagb-icon-list-child:hover)
  .wp-block-uagb-icon-list-child.active:not(:hover)::before {
  opacity: 0;
  transform: translate(-10px, -50%);
}

#service-sidebar h2::after {
  content: "";
  background-color: white;
  height: 4px;
  width: 70%;
  display: block;
}

.wp-block-uagb-container.uagb-layout-grid > .wp-block-uagb-container {
  width: 100% !important;
}

/* Desktop submenu override */
@media (min-width: 768px) {
  .sub-menu {
    background: color-mix(
      in srgb,
      var(--ast-global-color-0) 90%,
      transparent
    ) !important;
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 0.5rem;
    left: 50% !important;
    transform: translateX(-50%) !important;
  }

  .sub-menu li {
    padding: 0.5rem 1rem;
  }

  .sub-menu li::after {
    content: "";
    height: 1px;
    background: #fff9;
    left: 10%;
    right: 10%;
    bottom: 0;
    position: absolute;
  }

  /* Remove line from bottom items of each column */
  .sub-menu li:nth-last-child(-n + 2)::after {
    display: none;
  }
}

#footer-details {
  text-align: left;
}

/* Desktop footer min width override */
@media (min-width: 1200px) {
  .footer-hours {
    min-width: 400px;
  }
}
@media (max-width: 1200px) {
  .footer-hours .uagb-layout-grid {
    grid-template-columns: 120px 1fr !important;
    align-items: start !important;
  }
  /* Prevent time from wrapping */
  .footer-hours .uagb-layout-grid p:last-child {
    white-space: nowrap;
  }
}
@media (max-width: 576px) {
  .footer-hours {
    white-space: nowrap;
  }
  #footer-details {
    text-align: center;
  }

  #footer-contact-info {
    transform: translateX(25%);
  }
  #footer-contact-info .uagb-container-inner-blocks-wrap {
    justify-content: start;
    text-align: left;
  }
}

.footer-widget-area[data-section="sidebar-widgets-footer-widget-2"],
.footer-widget-area[data-section="sidebar-widgets-footer-widget-3"] {
  margin: 0;
}
