/*
 Theme Name:     Handlangers Child
 Theme URI:      https://www.elegantthemes.com/gallery/divi/
 Description:    Handlangers Child Theme
 Author:         Elegant Themes
 Author URI:     https://www.elegantthemes.com
 Template:       Divi
 Version:        1.0.0
*/

/* =Theme customization starts here
------------------------------------------------------- */

.et-l.et-l--header {
  position: fixed;
  top: 0; 
  left: 0;
  width: 100%;
  z-index: 100;
  transition:
    backdrop-filter 320ms ease,
    -webkit-backdrop-filter 320ms ease,
    background-color 320ms ease;
}

.et-l.et-l--header .et_pb_section {
  transition: padding 320ms ease;
}

.et_pb_section,
#main-content {
  background-color: transparent !important;
}

.et-l.et-l--header.nmd-header--scrolled {
  -webkit-backdrop-filter: blur(100px);
  backdrop-filter: blur(100px);
  background-color: rgba(255, 255, 255, 0.12);
}

.et-l.et-l--header.nmd-header--scrolled .et_pb_section {
  padding-block: 24px !important;
}

.richmond-display, .richmond-display * {
  font-family: "richmond-display", sans-serif !important;
}

.richmond-display-ultra-light, .richmond-display-ultra-light * {
  font-weight: 200 !important;
}

.richmond-display-light {
  font-weight: 300;
}

.richmond-display-regular {
  font-weight: 400;
}

.data_item_content h2 {
  margin-top: 24px;

  font-family: "richmond-display", sans-serif !important;
  font-weight: 200 !important;
  line-height: 1.15 !important;
}

.data_item_content .nmd__button {
  margin-top: 24px;
}

/* -------------------------------------------------------
   Custom NoMoreData buttons
   ------------------------------------------------------- */
.nmd__button,
.nmd__button--hollow {
  box-sizing: border-box;
  display: inline-flex;
  align-items: center;
  justify-content: center;

  padding: 10px 28px;
  border-radius: 7px;
  border: 1px solid #ffffff;

  font-family: "richmond-display", sans-serif;
  font-size: 21px;
  line-height: 1.7;
  letter-spacing: 0;
  text-decoration: none;
  white-space: nowrap;

  /* override Divi defaults (buttons are usually anchors) */
  background: transparent;
  color: #ffffff;
  box-shadow: none;
  border-color: white;

  transition: all 0.3s ease;
}

@media (max-width: 768px) {
  .nmd__button,
  .nmd__button--hollow {
    padding: 5px 18px;
  }
}

.nmd__button {
  background: #fff;
  color: #2900FE; /* rich-purple text like the screenshot */
}

.nmd__button--hollow {
  background: transparent;
  color: #ffffff;
}

/* Optional hover polish */
.nmd__button:hover,
.nmd__button--hollow:hover {
  transform: translateY(-10px);
}


.nmd-case-slider {
  --rc-case-bleed-right: clamp(40px, 8vw, 220px);
  overflow: visible;
  clip-path: inset(0 calc(-1 * var(--rc-case-bleed-right)) 0 0);
  z-index: 0;
}

.nmd-case-slider__swiper {
  overflow: visible;
}

.nmd-case-card {
  flex: 0 0 auto;

  height: 100%;
  width: clamp(260px, 72vw, 278px);
  background: white;
  border-radius: 16px;
  padding: 8px;

  display: flex;
  flex-direction: column;
  gap: 16px;
  justify-content: space-between;
}

.nmd-case-slider__swiper .swiper-slide {
  width: auto;
  height: auto;
}

.nmd-case-card__media {
  display: block;
  border-radius: 8px;
  overflow: hidden;
  height: 196px;
  background: url('https://nomoredata.io/wp-content/uploads/2026/05/gradient.png');
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;

  display: flex;
  justify-content: center;
  align-items: center;
}

.nmd-case-card__img { display: block; }

.nmd-case-card__title {
  margin: 0;
  font-size: 18px;
  font-weight: bold;
  padding: 0 16px 16px;

  a {
    color: #0500F9;
    text-decoration: none;
  }
}

.nmd-case-card__excerpt {
  margin: 0;
  font-size: 16px;
  line-height: 1.3;
  padding: 0 16px 24px;

  color: #0500F9;
}

.nmd-case-slider__pills {
  position: relative;
  margin-top: 24px;

  display: flex;
  gap: 4px;
}

.nmd-case-slider__pills .swiper-pagination-bullet {
  appearance: none;
  border: 1px solid white;
  background: transparent;
  height: 18px;
  width: 18px;
  border-radius: 4px;
  margin: 0 !important;
  padding: 0;
  cursor: pointer;
  transition: background-color 0.3s ease;

  opacity: 1;

  &.swiper-pagination-bullet-active {
    background: white;
  }
}

/* -------------------------------------------------------
   Subblocks (ACF repeater → list)
   ------------------------------------------------------- */
.nmd-subblocks__list {
  display: flex;
  flex-direction: column;
  gap: 40px;
}

.nmd-subblocks__itemhead {
  display: grid;
  grid-template-columns: 26px 1fr;
  gap: 16px;
  align-items: center;
  margin-bottom: 10px;
}

.nmd-subblocks__iconwrap {
  width: 26px;
  height: 26px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.nmd-subblocks__icon {
  width: 26px;
  height: 26px;
  object-fit: contain;
  display: block;
}

.nmd-subblocks__title {
  font-size: 18px;
  font-weight: bold;
  line-height: 1.15;
  margin: 0;
  padding: 0;
}

/* -------------------------------------------------------
   Data item menu (CPT: data-item)
   ------------------------------------------------------- */
.nmd-data-item-menu {
  width: 100%;
}

.nmd-data-item-menu__list {
  list-style: none !important;
  margin: 0 !important;
  padding: 0 !important;

  display: flex;
  gap: 24px;
  align-items: flex-end;
  flex-wrap: nowrap;
}

@media (max-width: 1280px) {
  .nmd-data-item-menu__list {
    display: none;
  }
}

.nmd-data-item-menu__row {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 18px;
}

.nmd-hamburger {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 54px;
  height: 44px;
  border-radius: 10px;
  text-decoration: none;
  color: white;
}

.nmd-hamburger__lines {
  width: 26px;
  height: 18px;
  position: relative;
  display: inline-block;
}
.nmd-hamburger__lines::before,
.nmd-hamburger__lines::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  height: 2px;
  background: white;
  border-radius: 1px;
}
.nmd-hamburger__lines::before { top: 3px; }
.nmd-hamburger__lines::after { bottom: 3px; }

/* Fullscreen overlay */
.nmd-overlay-menu {
  position: fixed;
  inset: 0;
  z-index: 20000;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition:
    opacity 260ms cubic-bezier(0.2, 0.8, 0.2, 1),
    visibility 0s linear 260ms;
}

html.nmd-menu-open .nmd-overlay-menu {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transition:
    opacity 320ms cubic-bezier(0.2, 0.8, 0.2, 1),
    visibility 0s linear 0s;
}

html.nmd-menu-open {
  overflow: hidden;
}

/* Hide all page content so the body gradient shows */
html.nmd-menu-open #page-container {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 180ms ease;
}

.nmd-overlay-menu__inner {
  height: 100%;
  width: 100%;
  padding: clamp(24px, 5vw, 56px);
  color: white;

  position: relative;
  overflow: hidden;
  transform: translateY(-10px) scale(1.01);
  opacity: 0;
  transition:
    transform 520ms cubic-bezier(0.16, 1, 0.3, 1),
    opacity 360ms ease;

  background: url('https://nomoredata.io/wp-content/uploads/2026/04/home.png') right bottom no-repeat;
  background-size: 65vw auto;
    will-change: transform, opacity;
  -webkit-backdrop-filter: none;
  backdrop-filter: none;
}

html.nmd-menu-open .nmd-overlay-menu__inner {
  transform: translateY(0) scale(1);
  opacity: 1;
}

/* (blur/glass removed) */

.nmd-overlay-menu__close {
  position: absolute;
  top: 18px;
  right: 22px;
  font-size: 90px;
  line-height: 1;
  text-decoration: none;
  color: white;
  font-weight: 300;
  font-family: 'richmond-display';
}

.nmd-overlay-menu__logo {
  display: block;
  line-height: 0;
  text-decoration: none;
  max-width: 222px;
}

.nmd-overlay-menu__logo:focus-visible {
  outline: 2px solid rgba(255, 255, 255, 0.85);
  outline-offset: 4px;
}

.nmd-overlay-menu__logo-img {
  display: block;
  height: clamp(28px, 4.8vw, 44px);
  width: auto;
  max-width: 100%;
}

.nmd-overlay-menu__grid {
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 124px;
}

.nmd-overlay-menu__primary {
  width: auto;
  display: flex;
  flex-direction: column;
  align-items: start;
  gap: 16px;
}

.nmd-overlay-menu__primary-link {
  font-family: "richmond-display", sans-serif;
  font-weight: 200;
  font-size: clamp(44px, 6vw, 72px);
  line-height: 1;
  text-decoration: none;
  color: white;
  display: block;
  margin: 0 0 14px;
  -webkit-font-smoothing: antialiased;
  transform: translateZ(0);
}

.nmd-overlay-menu__group {
  position: relative;
  /* margin-bottom: 14px; */
  /* one shared left edge for all submenu panels */
  --submenu-left: clamp(220px, 32vw, 314px);
  display: inline-block;

  /* invisible bridge so you can move into submenu without closing */
  &::before {
    content: "";
    position: absolute;
    left: 100%;
    top: 50%;
    width: calc(var(--submenu-left) - 100%);
    height: 120px;
    transform: translateY(-50%);
    background: transparent;
  }

  .nmd-overlay-menu__primary-link {
    display: inline-block;
  }

  /* connector line (16px gap after label, touches submenu panel) */
  &::after {
    content: '';
    position: absolute;
    display: block;
    height: 1px;
    /* start after label + 16px gap */
    left: calc(100% + 16px);
    top: 50%;
    /* end exactly at the submenu panel border */
    width: calc(var(--submenu-left) - 100% - 16px);
    background: linear-gradient(90deg, rgba(255, 255, 255, 0.6), rgba(255, 255, 255, 0.6));
    opacity: 0;
    transform: translateY(-50%);
    background-size: 0% 100%;
    background-repeat: no-repeat;
    background-position: left center;
    transition: background-size 220ms ease, opacity 220ms ease;
    pointer-events: none;
  }

  &:hover::after {
    opacity: 1;
    background-size: 100% 100%;
  }
}

.nmd-overlay-menu__submenu {
  position: absolute;
  left: var(--submenu-left);
  top: 50%;
  width: min(520px, 55vw);

  padding: 40px;
  border: 1px solid rgba(255, 255, 255, 0.6);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.06);

  opacity: 0;
  visibility: hidden;
  transform: translate(0, -50%);
  pointer-events: none;
  transition:
    opacity 220ms ease,
    visibility 0s linear 220ms;
  will-change: opacity;
  backface-visibility: hidden;
}

.nmd-overlay-menu__group:hover .nmd-overlay-menu__submenu {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transition:
    opacity 260ms ease,
    visibility 0s linear 0s;
  transition-delay: 220ms;
}

@media (prefers-reduced-motion: reduce) {
  .nmd-overlay-menu__submenu {
    transition: none;
  }
}

.nmd-overlay-menu__sub-link {
  display: grid;
  grid-template-columns: 18px 1fr;
  gap: 10px;
  align-items: center;
  text-decoration: none;
  color: white;
  font-size: 16px;
  line-height: 1;
  -webkit-font-smoothing: antialiased;
  transform: translateZ(0);
}

.nmd-overlay-menu__sub-link + .nmd-overlay-menu__sub-link {
  margin-top: 16px;
}

.nmd-overlay-menu__iconwrap {
  width: 18px;
  height: 18px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.nmd-overlay-menu__icon {
  width: 18px;
  height: 18px;
  object-fit: contain;
  display: block;
  filter: brightness(0) invert(1);
}

@media (max-width: 980px) {
  .nmd-overlay-menu__inner {
    overflow-x: hidden;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    padding: 14px 16px 20px;
  }

  .nmd-overlay-menu__close {
    font-size: clamp(48px, 14vw, 72px);
    top: 8px;
    right: 12px;
  }

  .nmd-overlay-menu__logo-img {
    height: clamp(22px, 6vw, 34px);
  }

  .nmd-overlay-menu__grid {
    gap: 12px;
  }

  .nmd-overlay-menu__primary {
    gap: 6px;
  }

  .nmd-overlay-menu__primary-link {
    margin: 0 0 4px;
    font-size: clamp(30px, 8.5vw, 52px);
  }

  .nmd-overlay-menu__submenu {
    position: static;
    width: auto;
    padding: 6px 0 0;
    border: 0;
    border-radius: 0;
    background: transparent;
    opacity: 1;
    visibility: visible;
    transform: none;
    pointer-events: auto;
  }

  .nmd-overlay-menu__sub-link + .nmd-overlay-menu__sub-link {
    margin-top: 8px;
  }
}

@media (max-width: 500px) {
  .nmd-overlay-menu__grid {
    gap: 8px;
  }

  .nmd-overlay-menu__logo-img {
    height: clamp(16px, 4.8vw, 20px);
    max-width: min(260px, 80vw);
    margin-bottom: 16px;
  }

  .nmd-overlay-menu__primary {
    gap: 16px;
  }

  .nmd-overlay-menu__primary-link {
    margin: 0 0 2px;
  }

  .nmd-overlay-menu__submenu {
    padding: 4px 0 0;
  }
}

.nmd-data-item-menu__item {
  position: relative;
  min-width: 114px;
  line-height: 1;
}

.nmd-data-item-menu__link {
  display: inline-block;
  text-decoration: none;

  font-size: 16px;
  line-height: 1.18;

  padding: 0px 0 12px;
}

.nmd-data-item-menu__item::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0px;
  height: 1px;
  background: white;
  /* transform: scaleX(0.0); */
  /* transform-origin: left; */
  /* transition: transform 220ms ease, background-color 220ms ease; */
}

/* .nmd-data-item-menu__item.is-active::after,
.nmd-data-item-menu__item:hover::after {
  transform: scaleX(1);
  background: rgba(255, 255, 255, 0.9);
} */

.nmd-data-item-menu__item.is-active .nmd-data-item-menu__link {
  font-weight: bold;
}

.nmd-data-item-menu__item.is-active::after {
  height: 3px;
}

@media (max-width: 980px) {
  .nmd-data-item-menu__list {
    flex-wrap: wrap;
    row-gap: 14px;
  }
}

.wpforms-container  {
  margin: -15px 0 0 !important;
  
  input:not([type="checkbox"]),
  textarea,
  select {
    padding: 16px !important;
    background-color: transparent !important;
    color: #ffffff;
    border: 1px solid #ffffff !important;
    border-radius: 10px !important;
    outline: none !important;
    box-shadow: none !important;
    width: 100%;
    font-size: 16px;
    font-family: 'Neue Montreal', sans-serif;
  
    &::placeholder {
      
      font-style: normal;
    }
  
    &:focus {
    }
  }

  textarea {
    height: 154px !important;
    resize: vertical;
  }
}

.wpforms-field-layout {
  margin-bottom: 0;
}

.wpforms-submit-container {
  margin-top: 16px;
}

.wpforms-field-label {
  color: #ffffff;
  font-weight: bold;
  display: block;
  margin-bottom: 8px;
}

.wpforms-field-label-inline {
  font-size: 14px !important;
  color: #ffffff;
  
  a {
    color: #ffffff;
    text-decoration: underline;
  }
}

.wpforms-field-payment-checkbox ul {
  margin: 0;
  padding: 0;

  list-style-type: none;
}

.et-db #et-boc .et-l .et_pb_module div.wpforms-container-full input[type=checkbox]:checked:before, .et-db #et-boc .et-l .et_pb_module div.wpforms-container-full input[type=radio]:checked:before {
  border-color: #ffffff !important;
}

.et-db #et-boc .et-l .et_pb_module div.wpforms-container-full input[type=checkbox]:checked:after {
  border-left-color: #ffffff !important;
  border-bottom-color: #ffffff !important;
}

.wpforms-field ul {
  margin: 0;
  padding: 0;
  list-style-type: none;
}

.footer__form {
  .wpforms-field-label-inline {
    color: white;
    a {
      color: white;
    }
  }
}

.wpforms-confirmation-container  {
  p {
    color: #ffffff;
  }
}

.et-db #et-boc .et-l .et_pb_module .wpforms-container .wpforms-field-label { 
  font-weight: 700 !important;
}

.wpforms-submit {
  padding: 10px 28px;
  border-radius: 7px;
  border: 1px solid #ffffff;

  font-family: "richmond-display", sans-serif;
  font-size: 21px;
  line-height: 1.7;
  letter-spacing: 0;
  text-decoration: none;
  color: #0500F9;
  cursor: pointer;
  white-space: nowrap;

  &:hover {}
}

@media (max-width: 600px) {
  div.wpforms-container .wpforms-form .wpforms-field-layout .wpforms-layout-column, div.wpforms-container .wpforms-form .wpforms-field-repeater .wpforms-layout-column {
      width: 100% !important;
      padding-right: 0 !important;
  }
}