/*
Theme Name: Air Pro Care
Theme URI: https://airprocare.sk/
Description: Custom WordPress theme for Air Pro Care.
Author: Air Pro Care
Author URI: https://airprocare.sk/
Version: 2.2.0
Text Domain: air-pro-care
*/

:root {
  --nav-color: #555555;  /* The default color of the main navmenu links */
  --apc-blue: #1595e8;
  --apc-pink: #ec0b7f;
}

/*** CUSTOM SECTION TITLES ***/

.section-title h2:after {
  background: linear-gradient(90deg, var(--apc-blue) 0 50%, var(--apc-pink) 50% 100%);
}

/*** CUSTOM NAVIGATION ***/

.header .logo .apc-header-logo {
	display: block;
	width: 160px;
	max-width: 100%;
	height: auto;
	max-height: 55px;
	object-fit: contain;
}

.navmenu a, .navmenu a {
	color: var(--nav-color);
}

.navmenu li.current-menu-item a {
	color: var(--nav-dropdown-hover-color);
}

.navmenu>ul>li.current-menu-item>a:before {
	color: var(--nav-dropdown-hover-color);
    content: "";
    position: absolute;
    height: 2px;
    bottom: -15px;
    left: 0;
    background-color: var(--nav-dropdown-hover-color);
    visibility: hidden;
    width: 0px;
    transition: all 0.3s ease-in-out 0s;
}

/*** CUSTOM BUTTONS ***/

.hero-3 {
	min-height: clamp(500px, 58vh, 620px);
}

.hero-3 img {
	object-position: right center;
}

.hero-3:before {
	background: linear-gradient(
		90deg,
		color-mix(in srgb, var(--background-color), transparent 4%) 0%,
		color-mix(in srgb, var(--background-color), transparent 8%) 32%,
		color-mix(in srgb, var(--background-color), transparent 45%) 48%,
		color-mix(in srgb, var(--background-color), transparent 82%) 64%,
		transparent 82%
	);
}

.hero-3 .btn-get-started.blue {
	display: inline-flex;
    align-items: center;
    justify-content: center;
    background: #1090e1;
    height: 50px;
}

.hero-3 .btn-outline {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    height: 50px;
    padding: 10px 30px;
    background: transparent;
    color: var(--accent-color);
    border: 3px solid color-mix(in srgb, var(--accent-color) 50%, transparent);
    border-radius: 10px;
    font-size: 14px;
    font-weight: 500;
    text-decoration: none;
    transition: all 0.2s ease;
}

.hero-3 .btn-outline:hover {
      background: color-mix(in srgb, var(--default-color) 5%, transparent);
      border-color: color-mix(in srgb, var(--default-color) 50%, transparent);
      color: var(--heading-color);
    }

.hero-3 .btn-outline:focus {
      outline: none;
      box-shadow: 0 0 0 3px color-mix(in srgb, var(--default-color) 50%, transparent);
    }

.about .btn-about-front {
  font-weight: 400;
  font-size: 15px;
  letter-spacing: 1px;
  display: inline-block;
  padding: 10px 30px;
  border-radius: 10px;
  transition: 0.3s;
  background: var(--contrast-color);
  color: var(--accent-color);
}

.about .btn-about-front:hover {
  background: color-mix(in srgb, var(--accent-color), transparent 20%);
}

.about .wp-block-list.feature-list li::before {
  content: "✓";
  color: var(--accent-color);
  font-weight: 700;
  font-size: 1.25rem;
  line-height: 1;
}

/*** CUSTOM SERVICES COLORS ***/

.services-3 .row > [class*="col-"]:nth-child(even) .service-block,
.services .row > [class*="col-"]:nth-child(even) .service-block {
  --accent-color: var(--apc-blue);
}

.services .service-block, .services-3 .service-block {border-radius: 12px;}


/*** Before After Section ***/
.before-after {
  overflow: hidden;
  background: linear-gradient(180deg, #f5f9fd 0%, #ffffff 42%, #f7fbff 100%);
}

.before-after .section-title h2 {
  margin-bottom: 6px;
}

.before-after-grid {
  position: relative;
  z-index: 1;
}

.apc-before-after {
  --position: 50%;
  position: relative;
  overflow: hidden;
  aspect-ratio: 16 / 9;
  margin: 0;
  border-radius: 14px;
  background: #1e2428;
  box-shadow: 0 16px 38px rgba(15, 31, 44, 0.16);
  isolation: isolate;
  cursor: ew-resize;
  touch-action: none;
}

.apc-ba-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  user-select: none;
  pointer-events: none;
}

.apc-ba-img-before {
  z-index: 2;
  clip-path: inset(0 calc(100% - var(--position)) 0 0);
}

.apc-ba-img-demo-before {
  filter: sepia(0.8) saturate(0.85) brightness(0.48) contrast(1.25);
}

.apc-ba-label {
  position: absolute;
  top: 12px;
  z-index: 5;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 64px;
  min-height: 30px;
  padding: 6px 14px;
  border-radius: 7px;
  color: #ffffff;
  font-size: 13px;
  font-weight: 800;
  line-height: 1;
  text-transform: uppercase;
  box-shadow: 0 8px 18px rgba(0, 0, 0, 0.2);
}

.apc-ba-label-before {
  left: 12px;
  background: #ec0b7f;
}

.apc-ba-label-after {
  right: 12px;
  background: #1595e8;
}

.apc-ba-divider {
  position: absolute;
  top: 0;
  bottom: 0;
  left: var(--position);
  z-index: 4;
  width: 3px;
  background: rgba(255, 255, 255, 0.92);
  transform: translateX(-50%);
  box-shadow: 0 0 18px rgba(0, 0, 0, 0.24);
}

.apc-ba-handle {
  position: absolute;
  top: 50%;
  left: var(--position);
  z-index: 6;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border: 3px solid #ffffff;
  border-radius: 50%;
  background: #ffffff;
  color: #1595e8;
  font-size: 20px;
  transform: translate(-50%, -50%);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.24);
}

.apc-ba-handle i {
  margin: 0 -4px;
}

.apc-ba-range {
  position: absolute;
  inset: 0;
  z-index: 8;
  width: 100%;
  height: 100%;
  opacity: 0;
  cursor: ew-resize;
}

.apc-before-after figcaption {
  position: absolute;
  left: 14px;
  right: 14px;
  bottom: 12px;
  z-index: 5;
  margin: 0;
  color: #ffffff;
  font-size: 14px;
  font-weight: 700;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.55);
}

.before-after-help {
  color: #263849;
  font-size: 15px;
  font-weight: 600;
}

.before-after-help i {
  color: #1595e8;
  font-size: 22px;
}

@media (max-width: 575.98px) {
  .apc-before-after {
    border-radius: 12px;
  }

  .apc-ba-label {
    min-width: 54px;
    min-height: 28px;
    padding: 5px 10px;
    font-size: 12px;
  }

  .apc-ba-handle {
    width: 40px;
    height: 40px;
  }
}
