@font-face {
  font-family: "Inter";
  src: url("../assets/fonts/Inter-Regular.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Inter";
  src: url("../assets/fonts/Inter-SemiBold.woff2") format("woff2");
  font-weight: 600;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Inter";
  src: url("../assets/fonts/Inter-Medium.woff2") format("woff2");
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}

* {
  box-sizing: border-box;
}

/* ------------------------ */
/* Typography Styles */
/* ------------------------ */

.activePage {
  text-decoration: underline;
}
/* Highlight the parent link */
.parent-link.active {
  color: #a020f0; /* purple */
  font-weight: bold;
}

/* Submenu styling */
.custom-submenu {
  position: relative;
  padding-left: 16px;
  background: none;
  box-shadow: none;
  border-right: none !important;
  display: none;
}

.custom-submenu .dropdown-item {
  margin-bottom: 8px;
}

.custom-submenu .nav-link {
  color: #888;
  font-weight: normal;
  background: none;
}

.custom-submenu .nav-link:hover {
  color: var(--menuhover-color);
  font-weight: var(--menuhover-fontweight);
  font-family: var(--menuhover-fontFamily);
}

.nav-link-menu.active {
  text-decoration: none !important;
}

/* Touch action properties for better mobile experience */
.menu-container .nav-link,
.nav-link-menu,
.custom-submenu .nav-link,
.activePage {
  touch-action: manipulation;
  -webkit-tap-highlight-color: transparent;
  -webkit-touch-callout: none;
  -webkit-user-select: none;
  -khtml-user-select: none;
  -moz-user-select: none;
  -ms-user-select: none;
  user-select: none;
}

/* Ensure regular navigation links are clickable */
.nav-link-menu[href^="http"],
.nav-link-menu[href^="/"] {
  cursor: pointer;
  pointer-events: auto;
  user-select: auto;
  -webkit-user-select: auto;
  -moz-user-select: auto;
  -ms-user-select: auto;
  -khtml-user-select: auto;
  touch-action: auto;
}

/* Ensure dropdown parent main anchors are clickable */
.dropdown-parent > .nav-link-menu[href^="http"],
.dropdown-parent > .nav-link-menu[href^="/"] {
  cursor: pointer;
  pointer-events: auto;
  user-select: auto;
  -webkit-user-select: auto;
  -moz-user-select: auto;
  -ms-user-select: auto;
  -khtml-user-select: auto;
  touch-action: auto;
  z-index: 10;
  position: relative;
}

/* Ensure anchor elements are clickable in mobile */
.anchor-block-element {
  touch-action: manipulation;
  -webkit-tap-highlight-color: rgba(0, 0, 0, 0.1);
  cursor: pointer;
  position: relative;
  z-index: 10;
}

/* Mobile-specific anchor styles */
@media (max-width: 768px) {
  .anchor-block-element {
    min-height: 44px;
    display: flex;
    align-items: center;
    padding: 12px 16px;
    margin: 2px 0;
    border-radius: 8px;
    transition: all 0.2s ease;
  }

  .anchor-block-element:active {
    transform: scale(0.98);
  }
}

/* Touch feedback class for JavaScript */
.touch-active {
  color: var(--menuhover-color) !important;
  font-weight: var(--menuhover-fontweight) !important;
  font-family: var(--menuhover-fontFamily);
  transform: scale(0.95) !important;
  transition: all 0.1s ease !important;
}

/* Dropdown open state */
.dropdown-parent.dropdown-open > .nav-link {
  color: var(--menuhover-color) !important;
  font-weight: var(--menuhover-fontweight) !important;
  font-family: var(--menuhover-fontFamily);
  /* background-color: rgba(160, 32, 240, 0.1) !important;*/
}

/* Mobile and Tablet Touch Styles */
@media (max-width: 1024px) {
  /* Touch-friendly active states for tablets and mobile */
  .menu-container .nav-link:active,
  .nav-link-menu:active,
  .custom-submenu .nav-link:active {
    color: var(--menuhover-color) !important;
    font-weight: var(--menuhover-fontweight) !important;
    font-family: var(--menuhover-fontFamily);
    transition: all 0.2s ease;
  }

  /* Optional: Remove dropdown arrow if present */
  .dropdown-parent > .parent-link::after {
    display: none;
  }

  /* submenu styling end */

  .header-extra-large {
    font-family: var(--font-family-primary);
    font-style: normal;
    font-size: 70px;
    line-height: 90px;
    letter-spacing: -3px;
    text-transform: none;
  }

  .header-large {
    font-family: var(--font-family-primary);
    font-style: normal;
    font-size: 42px;
    line-height: 48px;
    letter-spacing: -1.5px;
    text-transform: none;
  }

  .header {
    font-family: var(--font-family-primary);
    font-style: normal;
    font-size: 32px;
    line-height: 40px;
    letter-spacing: -1px;
    text-transform: none;
  }

  .title {
    font-family: var(--font-family-primary);
    font-style: normal;
    font-size: 20px;
    line-height: 28px;
    letter-spacing: -0.2px;
    text-transform: none;
  }

  .subtitle {
    font-family: var(--font-family-primary);
    font-style: normal;
    font-size: 20px;
    line-height: 30px;
    letter-spacing: 0;
    text-transform: none;
  }

  .eyebrow {
    font-family: var(--font-family-primary);
    font-style: normal;
    font-size: 18px;
    line-height: 27px;
    letter-spacing: 0;
    text-transform: none;
  }

  .paragraph {
    font-family: var(--font-family-primary);
    font-style: normal;
    font-size: 16px;
    line-height: 24px;
    letter-spacing: 0;
    text-transform: none;
  }

  .caption {
    font-family: var(--font-family-primary);
    font-style: normal;
    font-size: 12px;
    line-height: 20px;
    letter-spacing: 0;
    text-transform: none;
  }

  .label {
    font-family: var(--font-family-primary);
    font-style: normal;
    font-size: 16px;
    line-height: normal;
    letter-spacing: 0;
    text-transform: uppercase;
  }

  /* ------------------------ */
  /* Tablet (768px) */
  /* ------------------------ */

  @media (max-width: 768px) {
    .header-extra-large {
      font-size: 50px;
      line-height: 70px;
      letter-spacing: -2px;
    }

    .header-large {
      font-size: 36px;
      line-height: 44px;
      letter-spacing: -1px;
    }

    .header {
      font-size: 28px;
      line-height: 36px;
      letter-spacing: -0.8px;
    }

    .title {
      font-size: 18px;
      line-height: 26px;
      letter-spacing: -0.1px;
    }

    .subtitle {
      font-size: 18px;
      line-height: 28px;
      letter-spacing: 0;
    }

    .eyebrow {
      font-size: 16px;
      line-height: 24px;
      letter-spacing: 0;
    }

    .paragraph {
      font-size: 15px;
      line-height: 22px;
      letter-spacing: 0;
    }

    .caption {
      font-size: 11px;
      line-height: 18px;
      letter-spacing: 0;
    }

    .label {
      font-size: 15px;
      line-height: normal;
      letter-spacing: 0;
    }
  }

  /* ------------------------ */
  /* Mobile (360px) */
  /* ------------------------ */

  @media (max-width: 360px) {
    .header-extra-large {
      font-size: 38px;
      line-height: 52px;
      letter-spacing: -1.5px;
    }

    .header-large {
      font-size: 30px;
      line-height: 40px;
      letter-spacing: -0.5px;
    }

    .header {
      font-size: 24px;
      line-height: 32px;
      letter-spacing: -0.5px;
    }

    .title {
      font-size: 16px;
      line-height: 24px;
      letter-spacing: -0.05px;
    }

    .subtitle {
      font-size: 16px;
      line-height: 24px;
      letter-spacing: 0;
    }

    .eyebrow {
      font-size: 14px;
      line-height: 20px;
      letter-spacing: 0;
    }

    .paragraph {
      font-size: 14px;
      line-height: 20px;
      letter-spacing: 0;
    }

    .caption {
      font-size: 10px;
      line-height: 16px;
      letter-spacing: 0;
    }

    .label {
      font-size: 14px;
      line-height: normal;
      letter-spacing: 0;
    }
  }
}

button:focus {
  outline: none !important;
}

.dropdown-menu.custom-submenu .child-menu-item {
  position: relative;
  padding: 10px 24px;
}

.child-menu-item.active-child-menu::before {
  content: "";
  position: absolute;
  left: -1px;
  top: 0;
  bottom: 0;
  width: 4px;
  border-radius: 0;
  background-color: var(--active-child-menu-color, #8000ff);
}

.menu-container .child-menu-item.active-child-menu a {
  color: var(--active-child-menu-color, #8000ff) !important;
}
